I guess i could but the problem would be if the address is used by the other system so when my app runs it will ping two systems...and so there will be confusion.
Why not keep a shared database of addresses which are currently used in the network and just ask the database for an unused address? That's how dhcp servers work.
Bookmarks