Jump to content
  • Advertisement
Sign in to follow this  
31337

Multiple IP's Mapping to 1 Computer?

This topic is 5037 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

I am working on making a server browser (so the clients in my game can search their LAN for servers). My current algorithm is it sends one packet to every computer with an IP of MyIP.MyIP.MyIP.x. The problem we're running into is that the server gets 1-4 packets each time the client searches. Why is this happening? Does anybody have any ideas? The result is that the server responds to the same client with multiple packets. Any ideas would be greatly appreciated, Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
You may be sending the message to the broadcast address, or the server machine may have multiple interfaces.

The trick should be to send to send broadcasts in the first place.

Have the server only respond from its main (or first) IP address and the client use that IP rather than any other.

Mark

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!