Re: Get the external IP address from a Linux box

2018-06-02 Thread David Wright
On Tue 29 May 2018 at 14:57:22 (+0200), Pascal Hambourg wrote: > Le 28/05/2018 à 23:14, Pascal Hambourg a écrit : > >Le 28/05/2018 à 13:54, Alan Greenberger a écrit : > >> > >>You are mostly correct.  However, I have one machine on which the > >>response to > >>/usr/sbin/arp -n > >>shows two lines

Re: Get the external IP address from a Linux box

2018-06-02 Thread David Wright
On Tue 29 May 2018 at 08:04:06 (-0400), Alan Greenberger wrote: > On 2018-05-28, David Wright wrote: > > On Mon 28 May 2018 at 07:54:49 (-0400), Alan Greenberger wrote: > >> On 2018-05-26, Pascal Hambourg wrote: > >> > Le 25/05/2018 à 02:17, Alan Greenberger a écrit : > >> >> On 2018-05-24, André

Re: Get the external IP address from a Linux box

2018-05-30 Thread Joel Rees
(Erk. Sorry, Joe.) On Thu, May 24, 2018 at 6:29 PM, Joe wrote: > On Thu, 24 May 2018 08:13:54 +0100 > André Rodier wrote: > >> On Thu, 2018-05-24 at 09:07 +0200, Alberto Luaces wrote: >> > Joe writes: >> > >> > > On the assumption that you are using a router of some kind, your >> > > public >> >

Re: Get the external IP address from a Linux box

2018-05-29 Thread Greg Wooledge
On Fri, May 25, 2018 at 09:13:34PM -0400, Kenneth Parker wrote: > Thank you most kindly, Mike! Is there anything from this, that can help > the original Poster? Sign onto yourself, from a VPN or some such? It's conceptually the same as getting a web service to tell you what IP address it "saw" y

Re: Get the external IP address from a Linux box

2018-05-29 Thread Pascal Hambourg
Le 28/05/2018 à 23:14, Pascal Hambourg a écrit : Le 28/05/2018 à 13:54, Alan Greenberger a écrit : 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 o

Re: Get the external IP address from a Linux box

2018-05-29 Thread Alan Greenberger
On 2018-05-28, David Wright wrote: > On Mon 28 May 2018 at 07:54:49 (-0400), Alan Greenberger wrote: >> On 2018-05-26, Pascal Hambourg wrote: >> > Le 25/05/2018 à 02:17, Alan Greenberger a écrit : >> >> On 2018-05-24, André Rodier wrote: >> >>> >> >>> I am looking for a native package on Debian,

Re: Get the external IP address from a Linux box

2018-05-28 Thread Pascal Hambourg
Le 28/05/2018 à 13:54, Alan Greenberger a écrit : On 2018-05-26, Pascal Hambourg wrote: Le 25/05/2018 à 02:17, Alan Greenberger a écrit : 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

Re: Get the external IP address from a Linux box

2018-05-28 Thread David Wright
On Mon 28 May 2018 at 07:54:49 (-0400), Alan Greenberger wrote: > On 2018-05-26, Pascal Hambourg wrote: > > Le 25/05/2018 à 02:17, Alan Greenberger a écrit : > >> On 2018-05-24, André Rodier wrote: > >>> > >>> I am looking for a native package on Debian, that can give me the > >>> external IP add

Re: Get the external IP address from a Linux box

2018-05-28 Thread Alan Greenberger
On 2018-05-26, Pascal Hambourg wrote: > Le 25/05/2018 à 02:17, Alan Greenberger a écrit : >> On 2018-05-24, André Rodier 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

Re: Get the external IP address from a Linux box

2018-05-27 Thread Andrew McGlashan
Hi, On 27/05/18 22:14, André Rodier wrote: >> My script also does the Google DNS lookup. > I have four IP addresses, and Goodle DNS returns the first one, > although I query from the second one. Are you sure that isn't a problem at your end? How your firewall is identifying and routing the traff

Get the external IP address from a Linux box

2018-05-27 Thread Andrew McGlashan
Hi, On 26/05/18 20:53, André Rodier wrote: > The code is on github, as part of my small homebox project. I am not > sure it deserves a dedicated repository ;-). > > https://github.com/progmaticltd/homebox/blob/dev-arodier/install/playbo > oks/roles/system-prepare/files/external-ip My take from y

Re: Get the external IP address from a Linux box

2018-05-26 Thread Pascal Hambourg
Le 25/05/2018 à 02:17, Alan Greenberger a écrit : On 2018-05-24, André Rodier 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

Re: Get the external IP address from a Linux box

2018-05-25 Thread Richard Hector
On 24/05/18 18:59, Joe wrote: > To begin with, try: > > ip addr show > > and look for the block of information with a label beginning 'eth' or > 'en'. That will contain the Ethernet adaptor IP address. From your > question, I assume your computer contains only one. > > The address returned by I

Re: Get the external IP address from a Linux box

2018-05-25 Thread Kenneth Parker
Thank you most kindly, Mike! Is there anything from this, that can help the original Poster? Sign onto yourself, from a VPN or some such? (Back in the "good old days" where being a "hacker" was Respectable, people would see if they could reconnect to their own Unix/Linux System, through as many

Re: Get the external IP address from a Linux box

2018-05-25 Thread Michael Stone
On Fri, May 25, 2018 at 09:03:15PM -0400, Kenneth Parker wrote: I haven't reviewed the Source Code for the "who" command, to see how it gets that IP Address.  Anybody? It gets it from your login program or pam writing to /var/run/utmp Mike Stone

Re: Get the external IP address from a Linux box

2018-05-25 Thread Kenneth Parker
I have Shell Access (as Admin) to a "Cloud" System (Ubuntu 16.04 Server, but due to be Reinstalled as Debian 9.4. Go Debian!) When I ssh in, to my "Regular Account", I type "who", and get the External IP Address for my Spectrum Broadband access. What I got, just a few minutes ago, was the follow

Re: Get the external IP address from a Linux box

2018-05-25 Thread Dan Purgert
Abdullah Ramazanoğlu wrote: > On Thu, 24 May 2018 11:04:51 - (UTC) Dan Purgert said: > >> Ew, CGNAT. :( >> >> If you have a particularly poor ISP, they may even NAT you somewhere >> insane outside of RFC1918 (10.0.0.0 - 10.255.255.255 / 172.16.0.0 - >> 172.31.255.255 / 192.168.0.0 - 192.168.25

Re: Get the external IP address from a Linux box

2018-05-24 Thread Alan Greenberger
On 2018-05-24, André Rodier wrote: > Hello, > > 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

Re: Get the external IP address from a Linux box

2018-05-24 Thread Miles Fidelman
On 5/24/18 4:22 PM, Erwan David wrote: Le 05/24/18 à 22:17, Stefan Monnier a écrit : Alberto Luaces writes: Joe writes: On the assumption that you are using a router of some kind, your public IP address will be that of the router WAN port (cable, ADSL, etc.) and there will be a method of d

Get the external IP address from a Linux box

2018-05-24 Thread Erwan David
Le 05/24/18 à 22:17, Stefan Monnier a écrit : > Alberto Luaces writes: > >> Joe writes: >> >>> On the assumption that you are using a router of some kind, your public >>> IP address will be that of the router WAN port (cable, ADSL, etc.) and >>> there will be a method of determining that by connec

Re: Get the external IP address from a Linux box

2018-05-24 Thread Stefan Monnier
Alberto Luaces writes: > Joe writes: > >> On the assumption that you are using a router of some kind, your public >> IP address will be that of the router WAN port (cable, ADSL, etc.) and >> there will be a method of determining that by connecting to the router >> as an administrator. That method

Re: Get the external IP address from a Linux box

2018-05-24 Thread Dan Purgert
Greg Wooledge wrote: > On Thu, May 24, 2018 at 07:22:56AM +0100, André Rodier wrote: >> I am looking for a native package on Debian, that can give me the >> external IP address of the machine. > > wget --quiet -O- http://wooledge.org/myip.cgi > > Or your favorite alternative "tell me what my IP add

Re: Get the external IP address from a Linux box

2018-05-24 Thread Greg Wooledge
On Thu, May 24, 2018 at 07:22:56AM +0100, André Rodier wrote: > I am looking for a native package on Debian, that can give me the > external IP address of the machine. wget --quiet -O- http://wooledge.org/myip.cgi Or your favorite alternative "tell me what my IP address is" web service, if you do

Re: Get the external IP address from a Linux box

2018-05-24 Thread Peter Ludikovsky
curl https://icanhazip.com Regards, /peter On 2018-05-24 08:22, André Rodier wrote: Hello, I am looking for a native package on Debian, that can give me the external IP address of the machine. So far, I used internet sites, but I am sure there is a package that do that properly, especially if

Re: Get the external IP address from a Linux box

2018-05-24 Thread Dan Purgert
Abdullah Ramazanoğlu wrote: > On Thu, 24 May 2018 07:22:56 +0100 André Rodier said: > >> I am looking for a native package on Debian, that can give me the >> external IP address of the machine. >> >> So far, I used internet sites, but I am sure there is a package that do >> that properly, especial

Re: Get the external IP address from a Linux box

2018-05-24 Thread Joe
On Thu, 24 May 2018 08:13:54 +0100 André Rodier wrote: > On Thu, 2018-05-24 at 09:07 +0200, Alberto Luaces wrote: > > Joe writes: > > > > > On the assumption that you are using a router of some kind, your > > > public > > > IP address will be that of the router WAN port (cable, ADSL, etc.) > >

Re: Get the external IP address from a Linux box

2018-05-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, May 24, 2018 at 10:37:44AM +0300, Abdullah Ramazanoğlu wrote: [...] > Unless you have a dedicated IP address, then even if you directly connect to > your ISP (no routers, no NAT) you will likely get a local pool address and > from > there ro

Re: Get the external IP address from a Linux box

2018-05-24 Thread Abdullah Ramazanoğlu
On Thu, 24 May 2018 07:22:56 +0100 André Rodier said: > I am looking for a native package on Debian, that can give me the > external IP address of the machine. > > So far, I used internet sites, but I am sure there is a package that do > that properly, especially if one site is unreachable. > >

Re: Get the external IP address from a Linux box

2018-05-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, May 24, 2018 at 08:13:54AM +0100, André Rodier wrote: [...] > Thank you, finally an answer that make sense and is not pedantic. Thank *you* for the "pedantic" ;-) And to return the favour, here's why you don't really want to have UPnP on yo

Re: Get the external IP address from a Linux box

2018-05-24 Thread John Conover
likcoras writes: > >> > >> I am looking for a native package on Debian, that can give me the > >> external IP address of the machine. > >> > > > > Hi Andre. > > > > Type "ifconfig" without the quotes. The record you are looking for is > > inet addr: for IPV4. Its about the second line from the to

Re: Get the external IP address from a Linux box

2018-05-24 Thread Alberto Luaces
Joe writes: > On the assumption that you are using a router of some kind, your public > IP address will be that of the router WAN port (cable, ADSL, etc.) and > there will be a method of determining that by connecting to the router > as an administrator. That method will depend entirely on the rou

Re: Get the external IP address from a Linux box

2018-05-24 Thread Joe
On Thu, 24 May 2018 07:22:56 +0100 André Rodier wrote: > Hello, > > I am looking for a native package on Debian, that can give me the > external IP address of the machine. > > So far, I used internet sites, but I am sure there is a package that > do that properly, especially if one site is unre

Re: Get the external IP address from a Linux box

2018-05-23 Thread likcoras
On 05/24/2018 03:48 PM, John Conover wrote: > =?ISO-8859-1?Q?Andr=E9?= Rodier writes: >> >> I am looking for a native package on Debian, that can give me the >> external IP address of the machine. >> > > Hi Andre. > > Type "ifconfig" without the quotes. The record you are looking for is > inet ad

Re: Get the external IP address from a Linux box

2018-05-23 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, May 24, 2018 at 07:22:56AM +0100, André Rodier wrote: > Hello, > > I am looking for a native package on Debian, that can give me the > external IP address of the machine. Before embarking in such a task, you might want to consider what "the e

Re: Get the external IP address from a Linux box

2018-05-23 Thread John Conover
=?ISO-8859-1?Q?Andr=E9?= Rodier writes: > > I am looking for a native package on Debian, that can give me the > external IP address of the machine. > Hi Andre. Type "ifconfig" without the quotes. The record you are looking for is inet addr: for IPV4. Its about the second line from the top.