Jump to content
  • Advertisement
Sign in to follow this  
zappsweden

[java] Firewalls

This topic is 4673 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 have problems with firewalls stopping the connections. Is the best way to solve this by opening ports or is there any way of going around it? server side code -> -> -> int listenOnPort=Global.GAME_PORT; try { ServerSocket listenSocket = new ServerSocket(listenOnPort); Socket clientSocket = listenSocket.accept(); client Side code-> -> -> Socket serverSock= new Socket(this.connectToIP, Global.GAME_PORT);

Share this post


Link to post
Share on other sites
Advertisement
Don't work around firewalls. If your application is blocked, just tell the firewall owner that the firewall prevents your application from working correctly.
He can then unblock your application if he wants to.

Of course, if the user doesn't have the administrative priviledges to unblock an application, using a workaround would only get him into legal trouble.

Share this post


Link to post
Share on other sites
So depending on his firewall he has to either unblock or open port?
I get the feeling the bloke on the other side never gets a "would u like to unblock" message from the firewall, since he then would have solved the problem.

[Edited by - zappsweden on December 29, 2005 12:28:40 PM]

Share this post


Link to post
Share on other sites
ToohrVyk is correct you need to get the adminstrator of the firewall to open the port. You cannot open the port for them. Depending on the firewall the user has he may or may not get a message saying it was blocked. Most likely he won't get a message.

You will probably need to write a short document explaining what port you want to be unblocked and why it needs to be unblocked. Also a general example of how you would go about unblocking the port.

Greig

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!