This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Developing a server with clients with auto client discovery  RSS feed

 
Martin Coetzee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys. I'ts been a while since my last visit at javaranch. Well, I need some advice / help. I want to develop a server component, with multiple clients. I want the server to automatically discover my clients. I don't want to configure the server with IP addresses of the clients available on the network. I'd just like to place a new client on a machine, and the server should automatically start talking to it. Is there a way to todo this in Java? Any help will be great!

Thanks every1
Martin
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A conventional client-server program has a server listening for connections on a well-known host and port and the client makes a connection to it. There's no need for the server to be configured with the client address because sockets are bidirectional.
There are technologies for a networked device to advertise its existence and collaborate with other networked services, for example Jini.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!