|
Me and a few friends have made a simple game in Java, consisting of a server and a client program (using the Socket and ServerSocket classes). So far, we've only developed and tested locally. That is, we've run both the server and the client on the same machine and connected to localhost, which works just fine.
We now want to try it over the internet but are having troubles. We tried simply having one of us starting up the server at his house and I'm trying to connect from my computer using his IP and some chosen port (54054, so not an occupied port), but we can't connect. It gives a timeout.
Is there any particular steps one should take for these things? We've tried looking at firewalls and opening ports. Is there some kind of settings to allow the JRE to connect to foreign hosts or something? We tried pinging from a console to each other and for some reason I can ping to my friend who has the server but he can't ping to me.
I know this isn't much to go on for you guys, but codewise I'm pretty sure it should work. So I guess I'm just looking for general tips or settings that one often forgets about.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|