Skip to main content
Inspiring
August 30, 2021
Question

Applicationn using Socket & ServerSocket Classes whereby clients automatically discover LAN Server

  • August 30, 2021
  • 1 reply
  • 167 views

I've got an application that I'd like to have triggered / controlled over a LAN (always a private LAN and same network) that regardless of the DHCP details, clients discover the server and are able to communicate automatically without having to input relative IP's. 

 

To add a wrinkle, there will be multiple client Socket objects on the network that need to discover the ServerSocket automatically. 

 

I'm unsure if the classes I've chosen are appropriate for what I'm trying to do.  The Server will be passing keyCodes to the various clients simultaneously.  I thought it would make sense to have each remote node be a client instead of a server in this case?

 

Thanks in advance for any advice you can lend!

    This topic has been closed for replies.

    1 reply

    Inspiring
    August 31, 2021

    Finer Point Detail since I can't edit the original post:  Assume that the clients and server apps are running on the same gateway, same IP scheme, subnet, etc.