How can I find the IP address of my router?
Solution 1:
It could be that your router is set to a different IP address, Assuming you are connected to the router you can find the IP by opening a terminal and typing the below command and looking for the Gateway that relates to the destination 0.0.0.0
route -n
Example
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 vboxnet
You can see in this example my routers IP address is 192.168.1.1
Solution 2:
I addition to the answer of @stedotmartin, you can get the address fully automated with the following expression:
route -n | grep "^0.0.0.0" | cut -d ' ' -f 10
This only outputs the internal address of your router, like
192.168.1.1
in the above example.
Solution 3:
Many routers follow the default IP address. Try following:
192.168.1.0 192.168.0.1
If you still cannot get into your router and you have working internet connection you can copy your public/external IP address from http://whatismyip.live and paste in your browser this will open your router settings directly. So visiting your own public IP address is also your router address. This method works fine for me on TP-link router.