Sign in to follow this  
Followers 0
EternityZA

UDP packets from server to client

4 posts in this topic

Hi.

 

my game uses an UDP and a TCP connection to its server. Some data gets sent over UDP and some over TCP both from server to client and client to server. 

 

Sending UDP packets from client to server is never a problem since the server is never behind some arbitrary router that's not in my control but what about the other way around? Can I expect to lose potential players if I use UDP from server to client or can I accept that virtually 100% of routers out there will be able to properly deliver the packets back to the client. Using UDP from server to client gains me little so its not worth it at all if I'm blocking out even a small amount of players.

 

Thanks in Advance!

0

Share this post


Link to post
Share on other sites

I use UDP in both directions. 

 

I've tested at least 20 different places, including coffee shops, libraries, restaurants, 3g/4g cellular and never had a problem with firewalls/router incompatibility.   Maybe my sample size is too small, I'd really like to have about 200 different places tested before calling it a day (that's what Beta is for), but that has been my experience. 

 

While I haven't hit any router issues yet, I certainly have seen differences in packet loss and latency.  A couple Starbucks location are the worse: they average about 15% packet loss, 1200ms ping.

1

Share this post


Link to post
Share on other sites

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  
Followers 0