-1

I'm developing a JAVA software and I want to ask the other clients for a database. This is a kinda shared DB which contains datas I wanna merge. Now my quiestion is: how can I detect the IPs of the other machines(on local network) using the same client software?

Robi Kálmán
  • 99
  • 1
  • 3
  • It would make more sense for the clients to discover the server's address. That way you only have to publish one IP address:port. – user207421 Jul 27 '14 at 12:16

1 Answers1

1

I've done this before by having each client have a thread listening on a particular UDP port and then the querying client can send a broadcast on the LAN to that same port.

Alnitak
  • 334,560
  • 70
  • 407
  • 495