Port Forward
When hosting a web server or game room, you need to perform port forwarding. Basically when you host a server, it is accessible through your computer using internal ip or localhost. Internal IP is assigned by router to your computer. Every computer connected to router have a ip address.
For example : There are two laptop connected to wifi, suppose router assign ips 192.168.1.2 and 192.168.1.3 respectively to each laptop. So a server hosted on first laptop can be accessed by second laptop by using its internal ip 192.168.1.2(first laptop ip).
Now if anyone on internet wants to connect to your server, he will use external ip. Now by default router does not allow to access ports on your computer directly, so if your external ip is 182.191.xxx.xxx then you can't access your server through this ip. To do so you will need to port forward. So that the port on your internal ip can be accessed from external ip.
For example :For team fortress 2 server running on my pc. I will port forward my internal ip with port 27015.
192.168.1.13:27015 -> 182.191.xxx.xxx:27015
For example :For team fortress 2 server running on my pc. I will port forward my internal ip with port 27015.
192.168.1.13:27015 -> 182.191.xxx.xxx:27015
now my server is accessible from internet using my external ip.
Now in this tutorial i will assume you already have a server set-up. So we will only focus on port forwarding.
Instructions :
- First you will need to find your internal IP.
Open CMD and type ipconfig.
The field "IPv4 Address" shows your internal ip, in my case it is "192.168.1.13" - Now make sure you have allowed the current application through firewall. [Tutorial will be posted soon]
- For port forwarding open router page (http://192.168.1.1)
- Advanced Settings > Router > Security
Here Private Ip is my internal ip
Private port is the port hosted on my pc
Global port is the port which will be used on my external ip. For example the web server on my pc is on port 8080 but i use the port 80 in global port so that 80 port will be used on external ip.
Protocol depends on application like UDP only for team fortress unless you want recon too. - After this you are good to go
- To verify that if your port forwarding is working use this website.
Comments
Post a Comment