On 2018-05-26, Pascal Hambourg <pas...@plouf.fr.eu.org> wrote: > Le 25/05/2018 à 02:17, Alan Greenberger a écrit : >> On 2018-05-24, André Rodier <an...@rodier.me> wrote: >>> >>> I am looking for a native package on Debian, that can give me the >>> external IP address of the machine. >> >> Assuming you are looking for the public internet address of your router, >> you could try: >> /usr/sbin/arp -n >> and it may show up on a line with the HWadress of your router. > > Nope. That would just show the internal address of the router. > > You are mostly correct. However, I have one machine on which the response to /usr/sbin/arp -n shows two lines with the HWaddress of the router, one with the internal address as you said and the other with the external address. I have no idea what made arp see the external address.
- Re: Get the external IP address from a Linux bo... Richard Hector
- Re: Get the external IP address from a Linux box Abdullah Ramazanoğlu
- Re: Get the external IP address from a Linux box Peter Ludikovsky
- Re: Get the external IP address from a Linux box Greg Wooledge
- Re: Get the external IP address from a Linux box Alan Greenberger
- Re: Get the external IP address from a Linux bo... Pascal Hambourg
- Re: Get the external IP address from a Linu... Alan Greenberger
- Re: Get the external IP address from a ... David Wright
- Re: Get the external IP address fro... Alan Greenberger
- Re: Get the external IP addres... David Wright
- Re: Get the external IP address from a ... Pascal Hambourg
- Re: Get the external IP address fro... Pascal Hambourg
- Re: Get the external IP addres... David Wright
- Re: Get the external IP address from a Linux box Kenneth Parker
- Re: Get the external IP address from a Linux bo... Michael Stone
- Re: Get the external IP address from a Linu... Kenneth Parker
- Re: Get the external IP address from a ... Greg Wooledge