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):
The filter outputs the command:
To find out routere's IP in Linux:
The fist line of returtn contain the router address. Check a table maps packets to find internal IP router address.
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