The Gates to the Internet
Yesterday I explained, or tried at least, how you should set up a remote connection to your computer from anywhere on the internet.
Now their might actually be a chance that this will not work when you are behind a router.
Chances are rather high that your router blocks the port remote desktop or VNC is using toward the internet.
Port… what now?
Well, in short, each application that has a webinterface or that need to be accessible trough the internet runs on a certain port. This is the “door” to the application.
For example FTP runs on port 21, POP3 runs on port 110, Oracle Apex runs by default on port 8080 and so on and so forth.
Might be interesting to know that Microsoft’s remote desktop runs on port 3389 and VNC run (default) on port 5900.
Now most, if not every, router will block these ports by default. But don’t worry, not all is lost! You can open ports from the router side. This is called port forwarding.
Important to know, only one application can run on one specific port at the time.
The only problem when explaining this is that port forwarding is different on each router. Then again, it shouldn’t be so hard to find out how it works on your router. It’s pretty easy.
What you have to do, no matter which type of router you got is navigate to the web interface of your router. Before you can do this, you need to find out your local IP address.
In windows open up a command box by pressing start >> run and execute command CMD.
In the black DOS box type command IPCONFIG and hit enter. A series of numbers will be shown now and one of them is your IP address (not hard to find it literally says IP Address).
Now, 9 cases out of 10 your IP address will be something like 192.168.X.X (X being a number). To surf to the web interface of your router you pick the first 3 numbers from the IP address devided by the dots and replace the last number by 1.
Something like this: 192.168.X.1 (X being a number). Open up a browser and navigate to http://192.168.X.1 (X being a number again).
Tadaaaaah the web interface of your router. You’ll probably need to login and as you may have guessed, I cannot tell you what the user and the password is. You are the one that knows this :’)… If you haven’t changed anything to the configuration of this, take the manual of your router. All the info is there.
Now the only thing you need to do is navigate to the port forwarding page of your router, enter the ip address of your computer (or hostname, some routers allow that as well) and the port you wish to forward (protocol is tcp, udp or both, I always take both).
You’ll most likely find a guide specific for your type of router on the internet. Google port forwarding <typ of your router here>.
Off you go, the door is now open!