Find Your Gateway IP
From Amahi Wiki
It's important for you to know the internal IP address of your default gateway, which is normally your router's LAN IP address.
If you have ever had to access your router to configure it, you should know the address. It's what you type in your browser address bar to reach the configuration interface (example: http://192.168.1.1/) and, if not, you can find it with the following steps:
- Windows:
- Click Start > All Programs > Accessories > Command Prompt.
- When Command Prompt is open, type the following command:
ipconfig | findstr /i "Gateway"
(You can copy & paste it in the command prompt; just right-click anywhere in the command prompt window and select Paste.) - You should see something like this:
C:\Documents and Settings\administrator>ipconfig | find "Gateway"
Default Gateway . . . . . . . . . : 192.168.1.1 - In this example, your default gateway (router) IP address is 192.168.1.1.
- Click Start > All Programs > Accessories > Command Prompt.
- Linux:
- You'll need to open a Terminal. Depending on your Linux distribution, it can be located in the menu items at the top, or at the bottom of your screen. In this example, we will use Fedora. Click Applications > System Tools > Terminal.
- When terminal is open, type the following command:
ip route | grep default
- The output of this should look something like the following:
joe$ ip route | grep default
default via 192.168.1.1 dev eth0 proto static - In this example, again, 192.168.1.1 is your default gateway (router) IP address.
- You'll need to open a Terminal. Depending on your Linux distribution, it can be located in the menu items at the top, or at the bottom of your screen. In this example, we will use Fedora. Click Applications > System Tools > Terminal.
- Mac OS X:
- Open the Terminal application. Do do this, click Finder > Applications > Utilities > Terminal.app.
- When Terminal.app is open, type the following command:
netstat -nr | grep default
- This will output the following:
joe$ netstat -nr | grep default
default 192.168.1.1 UGSc 50 46 en1 - In this example, again, 192.168.1.1 is your default gateway (router) IP address.
- Open the Terminal application. Do do this, click Finder > Applications > Utilities > Terminal.app.