Sign in to follow this  

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

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

This topic is 4204 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this