Hi,
A have a dreambox located behind a router/fw.
The dreambox is receiving a local IP address from the DHCP server (192.168.0.x/24).
Does anyone know how I can find out my public IP address from the CLI.
There are several websites that provides this using a web browser, but I can't find how to do this from the CLI.
Find public IP address through cli
Started by squidden, 31 Jul 2012 15:50
7 replies to this topic
Re: Find public IP address through cli #2
Re: Find public IP address through cli #3
Posted 31 July 2012 - 16:22
Thanks for your quick answer but it won't show me the public ip-address. Only the internal.
root@vuuno:~# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8001 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 164 192.168.0.5:23 192.168.0.6:52331 ESTABLISHED
tcp 0 0 :::22 :::* LISTEN
root@vuuno:~# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8001 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 164 192.168.0.5:23 192.168.0.6:52331 ESTABLISHED
tcp 0 0 :::22 :::* LISTEN
Re: Find public IP address through cli #4
Posted 31 July 2012 - 16:28
I think you'd have to log into the router (telnet/ssh) and run the ifconfig command. The dreambox itself doesn't see/know/need the external IP, all it sees is the internal gateway IP...
--
hemi
PS. I stand corrected, see below...
--
hemi
PS. I stand corrected, see below...
Edited by hemispherical1, 31 July 2012 - 16:30.
Re: Find public IP address through cli #5
Re: Find public IP address through cli #6
Posted 31 July 2012 - 16:37
wget -q -O - http://icanhazip.com
is probably the simplest, as you wont need to install anything extra.
is probably the simplest, as you wont need to install anything extra.
Re: Find public IP address through cli #7
Re: Find public IP address through cli #8
Posted 31 August 2012 - 05:19
Hai, i don't know how to get through client service. But i could found my public ip address simply on google. just type "my ip" in search box. It shows public ip address. I got my public ip address details like ISP, country details with geo location result at Ip-Details.com
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users