Jump to content
  • Advertisement
Sign in to follow this  
Fatal Error

trying to connect to a server over a LAN!!!

This topic is 4506 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'm using the ENet package for my project - I'm saying that because i don't know if my question is a generic networking concept or relates only to the package used - And at last i've managed to bind two computers together over a LAN connection. the problem is that i manualy enter the IP address of the PC that i run the server on it into my client app so they get connected. what i want to do is making my client app autamatically detect an existing server over the LAN ... like other games do!

Share this post


Link to post
Share on other sites
Advertisement
Send a UDP Broadcast that requests all servers to respond with thier IP Address. This will give the client a list of severs. Now if you want to be a bit paranoid, do the request a few times, a UDP broadcast is not guaranteed to be recieved so you can add a little redundency.

theTroll

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!