Sign in to follow this  
Davi Doro

[ANSWERED] Questions about public WiFi vs private WiFi

Recommended Posts

I coded a little client-server and tested on my own machine using my private IP. It works, it connects fine and successfully runs a ping command. I rented a VPS and put the server to run in there and tried to connect to it and it successfully connected, but when I try to ping, the messages are never delivered.

 

My best guess is that the problem is that I'm using the university's WiFi and that the "PING" package is being dropped by the X.

 

Assuming I'm correct, my question is, who is X? And how do I solve this problem?

 

And if I'm not correct, what's happening? How does a public wifi differs from a private wifi?

 

Thank you!

Share this post


Link to post
Share on other sites

Well, now I'm extra confused. I though it was much simpler like "change the port you are listening to 9090 and it should work".

Take any 1v1 turn-based strategy multiplayer game on Steam for instance. How do they do it?

Share this post


Link to post
Share on other sites

When you say 'ping', are you talking about the ping command you run from the command line (which sends ICMP packets), or a 'PING' message in your own custom network protocol?

 

ICMP packets are very often blocked, custom protocols are sometimes blocked. For a custom protocol, port 80 (HTTP default port) is almost never blocked, so consider running your server process on port 80 during testing.

Edited by swiftcoder

Share this post


Link to post
Share on other sites

You know what guys, nevermind... my server works fine and I can communicate with it, there were a logic error in my ping command.

Let this post die silently while I leave without being noticed...

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