How to redirect port in a router

To open a local port, you need to know the port number and the local ip address.

To find out your own local address, use Ifconfig in Win.

And in Linux (To open a terminal in Linux, you can use the shortcut Ctrl+Alt+T):

$ sudo ifconfig

The filter outputs the command:

$ sudo ifconfig | grep "inet"

To find out routere's IP in Linux:

$ ip route show

The fist line of returtn contain the router address. Check a table maps packets to find internal IP router address.

$ route -n

The first string of returtn is a router's address. The ARP table also contains a router's IP.

Several type routers configuration results:

or

or