Jump to content
  • Advertisement
Sign in to follow this  
Anand Baumunk

Udp server on homePC

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

Hey guys,
I'm currently writing on an udp gameserver, and I reached a state I would need some multiclienttesting now. So I gave the client to a friend, and started the server on my Pc, letting the clients connect to my IP. For some reason no packets reach the server, but it doesnt throw an error either. The server sends his answer to a client using the sendto function and the port/ip he got from the last packet.
When I start multiple Clients on my own PC it runs just fine. The ports it connects on differ any time a client is started, even thougth I gave them a spezific port for the socket, so I can't really open the port on my router.

I don't even have an idea what is the problem needed to be fixed here, so I hope that you can point me in the right direction.

Greetings

Share this post


Link to post
Share on other sites
Advertisement
Considering no packets reach the server, the problem could possibly be with network address translation. Look up information on "udp punch through", or "udp hole punching".

Share this post


Link to post
Share on other sites
How could your server answer to the "last packet" information where he does not receive any packet? Your sentence is off. Also, UDP is like a black void, you don't have any feedback so it's normal the client don't throw any error.

I guess you simply have a firewall blocking them. Check in your router, your Windows firewall, or your anti-virus.

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!