Find Your Gateway IP
From Amahi Wiki
Also, if you have ever had to go to your router, you should know the address. Its what you type in your browser to reach it (ie http://192.168.1.1/) and, if not, you can find it with the following steps:
- If Windows OS:
- Click Start > All Programs > Accessories > Command Prompt.
- When Command Prompt is open, type the following command:
ipconfig
- You should see something like this:
- Click Start > All Programs > Accessories > Command Prompt.
C:\Users\Username>ipconfig
Windows IP Configuration
LAN adapter Network Connection:
Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe88::7d0d:8844:62d7:3155%10 IPv4 Address. . . . . . . . . . . : 192.168.1.222 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1
The bottom line is what you need. In this example, it is 192.168.1.1.
- If Linux OS:
- Depending on your Linux distrobution, it can be located in the menu items at the top, 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:
- Depending on your Linux distrobution, it can be located in the menu items at the top, in this example, we will use Fedora. Click Applications > System Tools > Terminal.
default via 192.168.1.1 dev eth0 proto static
In this example, again, 192.168.1.1 is your default gateway IP address.
- If Mac OS:
- In Mac OS you will need to open up terminal as well. Do do this, click Finder > Applications > Utilities > Terminal.app.
- When Terminal.app is open, type the following command:
ipconfig getpacket en1
Where en1 is the adapter you are connected to, the default for wire (ethernet) is eth0, in my case, im connected through wireless adapter, so the default on my MacBook is en1 (late 2008 model). - This will output the following:
- In Mac OS you will need to open up terminal as well. Do do this, click Finder > Applications > Utilities > Terminal.app.
op = BOOTREPLY htype = 1 flags = 0 hlen = 6 hops = 0 xid = xxxxxxxxx secs = 0 ciaddr = 0.0.0.0 yiaddr = 192.168.1.x siaddr = 0.0.0.0 giaddr = 0.0.0.0 chaddr = 0:00:0:0x:00:0x sname = file = options: Options count is 7 dhcp_message_type (uint8): ACK 0x5 server_identifier (ip): 192.168.1.1 lease_time (uint32): 0x15180 subnet_mask (ip): 255.255.255.0 router (ip_mult): {192.168.1.1} domain_name_server (ip_mult): {192.168.1.1} end (none):[/code]
In this output, the part that shows router (ip_mult): {192.168.1.1}
where 192.168.1.1 is the router IP or gateway IP.