ifconfig is good for finding your internal IP number and other information, but to set up port forwarding you need to find your router internal IP number.
If you see an IP number that is referred to as "default gateway" or just "gateway," that's your router's IP number.
If you're connected by ethernet, you can find that number using the following command:
$ nmcli dev list iface eth0 | grep IP4
See askUbuntu.
Okay, I just found a better way for out-of-the-box ubuntu on sudo juice:
$ nm-tool
This will give you your router IP, which it calls "Gateway."
No comments:
Post a Comment