Archived

This topic is now archived and is closed to further replies.

[java] Networking for RTS

This topic is 5368 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

You can:

1) Have all hosts register their IPs on a central database and have the clients read from that. IPs are registered when the host starts and are deregistered\ flaged off when the host is closed\ limit reached.

2) Scan every IP address in existance and see if they''re running your software =P



#Old Steve, he said to Xerox "Boys, turn your heads and cough"
And when no-one was looking he ripped their interfaces off#
Three Dead Trolls in a Baggie on the truth behind MacOS 1

SketchSoft | SketchNews


Share this post


Link to post
Share on other sites
you can send out a udp broadcast message that your game server will receive and respond to with a message containing its name, ip, which map its running, etc..

Share this post


Link to post
Share on other sites
Yes, broadcasting an UPD packet works nice.
I work on an SNMP product and we send out a simple UPD packet over the network to find supporting devices.
However, make sure the applications you are trying to find always listen on the same port

Share this post


Link to post
Share on other sites