So you want other people to play your game ey?
In this tutorial I will show you how to use port forwarding in order to ‘get your game online’. I’m using windows 7 but this process works over any OS. (even if eclipse doesn’t aha)
HOWEVER, the command line command may differ with other OS’
First things first, go ahead and open Command Prompt (cmd)
Type in IPCONFIG and smash enter.
You might get A LOT of information from this command so just scroll up until you find your actual internet connection. You’re going to need to remember two things from this, your router’s IP and your Internal IP.
Open your web browser and go to your Router’s IP address. you will need to log in, in most cases these passwords haven’t been changed by home users. they are usually:
Next you need to look around the settings of the router and find the Port Forwarding setting. Go ahead and click on it to go to the port forwarding settings menu.
Now is the important part. In your client’s folder, there will be either a config.ini or data.ini, in here you specify what port to use (it must be a number)
you must make sure the port here is the same as the port number in the server’s config.ini/data.ini
you will put this port in the “Port Start” and “Port End” box on the forwarding settings.
THEN, put your internal IP in the IP Address box on the settings.
Save the new rule, your router may need to restart but it’ll only take about 30 seconds. Then go to: http://www.ipchicken.com/ to get your ACTUAL IP address. put this in the client’s config.ini/data.ini in the IP line.
Start up your server and send your client to your friends/whoever you want to be playing your game.
AND YOU ARE DONE!
*You may find that if your computer gets turned off/on, that people can not connect to your server anymore, in which case you may need to repeat this process as your internal IP address has changed. Unless you set up a static IP for your computer that runs the server.