Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

how to broadcast/multicast a service over the network for clients to discover without any need for server IP?

how to let other clients discover the service from a server, without the client requiring the IP address of the server, similar to DHCP IP acquiring.

broadcast? multicast? how do i implement the same in ruby or any other language?

share|improve this question
add comment

2 Answers

DHCP uses broadcast address on UDP port. It is job for bsd sockets programming interface. In ruby you've got socket in standard library.

share|improve this answer
add comment

There's a naming protocol called ZeroConf that seems to be what you need. The main provider of it is Apple, who calls it Bonjour (used to be called Rendezvous, but needed a name change). There are Ruby bindings. I don't know how to set up the service though; what OS will the server be living on?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.