I was wondering if there was a way to find out your router's ip address without using a website like www.whatismyip.com.
I searched around, and I am beginning to think it is impossible. If that is the case, could someone explain why?
|
I was wondering if there was a way to find out your router's ip address without using a website like www.whatismyip.com. I searched around, and I am beginning to think it is impossible. If that is the case, could someone explain why? | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
| |||||||
feedback
|
|
You want to know how are you being seen from outside, so to do this you need to use some outside service. Note, that it does not have to be just your router WAN address. If you are using http proxy for example the result can by an IP of host many hoops away from your router. There are several sites with such service. Most is HTTP based, for convenience. If you need to do it from terminal, you can:
| |||
|
feedback
|
|
in addition to dmckee's answer, you may even be able to query the device using snmp, although it usually needs some setting up and isnt particually user-friendly. | |||
|
feedback
|
|
Most routers support reading (and sometimes even writing) status information and further configuration options via uPnP. One of the information you can get via uPnP is the external IP address assigned to the router. I don't know which uPnP clients are available for Linux but it may be worth a try... | |||
|
feedback
|
|
with some routers you can do a "get" on their admin interface somehow, and buried in the HTML will be the external IP address. | |||
|
feedback
|