Re: Get the external IP address from a Linux box

2018-06-02 Thread David Wright
following the "weak host" model (like > >Linux does) can advertise any local address on any interface. It > >can be tested with arping. However I am failing to imagine any > >plausible scenario which could lead a host on the internal LAN to > >have the router's

Re: Get the external IP address from a Linux box

2018-06-02 Thread David Wright
é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. > >> >> > >> >> Assumi

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
plausible scenario which could lead a host on the internal LAN to have the router's external IP address in its ARP cache. It means that either : - the host sends an ARP query for the router's external IP address I guess this could happen if the host has a direct default route (no gateway)

Re: Get the external IP address from a Linux box

2018-05-29 Thread Alan Greenberger
gt; >>> 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: >> >

Re: Get the external IP address from a Linux box

2018-05-28 Thread Pascal Hambourg
uld lead a host on the internal LAN to have the router's external IP address in its ARP cache. It means that either : - the host sends an ARP query for the router's external IP address - the router sends an ARP query to the host from its external IP address

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 Debi

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. >>

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
e DNS lookup. > - Count the IP addresses returned, and order them by the most probable > result. > - Return the external IP address only if above a certain level of > confidence (actually 100%). > - The list of IP addresses is in a separate configuration file. I've kept the opti

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, j

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

Re: Get the external IP address from a Linux box

2018-05-24 Thread Miles Fidelman
SP, so even if `external-ip` does give an answer I'm not sure it's guaranteed to be "the" external IP address. Stefan You could also be natted to one pool, so get different addresses for different connections, or even have different services natted to different pools (eg be

Get the external IP address from a Linux box

2018-05-24 Thread Erwan David
t my > router gets could itself be an "internal IP" behind a NAT firewall of my > ISP, so even if `external-ip` does give an answer I'm not sure it's > guaranteed to be "the" external IP address. > > > Stefan > > You could also be natted to one p

Re: Get the external IP address from a Linux box

2018-05-24 Thread Stefan Monnier
does give an answer I'm not sure it's guaranteed to be "the" external IP address. Stefan

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 alte

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

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

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 pa

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

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 look

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, espe

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

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 consid

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 se

Re: External IP Address

2001-09-01 Thread Rino Mardo
your current ip address is. just remember the name. hth. - Original Message - From: Hereward Cooper <[EMAIL PROTECTED]> To: Sent: Saturday, September 01, 2001 9:40 PM Subject: External IP Address > Hi, > How can I get my machine to automatically update a file with my >

Re: Re: External IP Address

2001-09-01 Thread Craig Dickson
Hereward Cooper wrote: > I know that, what i wanted was a system that would read the IP > address, write it to a file, upload the file to a webserver > somewhere, people then read the file, get my ip address and > login. Long-winded, but the only way i though of. Uh, why don't you just set up an

Re: Re: External IP Address

2001-09-01 Thread dman
On Sat, Sep 01, 2001 at 02:50:13PM +, Hereward Cooper wrote: | > /sbin/ifconfig | > will display the IP address of all interfaces | > | > It would be really hard for those people to ssh in and read | > that file | > unless they first knew the IP, in which case they wouldn't | > need the |

Re: Re: External IP Address

2001-09-01 Thread Hereward Cooper
> I'll attach a perl snippet that I used when on modem, > might give you some ideas. Stuff between ¤¤'s need to > be adapted - mainly account specific stuff. To make it > autoexecute on connection - just place it (with a > non-ignorable name) in /etc/ppp/ip-up.d > looks like just what i was wa

Re: Re: External IP Address

2001-09-01 Thread Hereward Cooper
> /sbin/ifconfig > will display the IP address of all interfaces > > It would be really hard for those people to ssh in and read > that file > unless they first knew the IP, in which case they wouldn't > need the > file ... I know that, what i wanted was a system that would read the IP addres

Re: External IP Address

2001-09-01 Thread dman
On Sat, Sep 01, 2001 at 01:40:00PM +, Hereward Cooper wrote: | Hi, | How can I get my machine to automatically update a file with my | current dynamic IP address? Is there a enviroment varriable | which i can read it from, write it to a file, then upload it to | a hidden section of a public web

External IP Address

2001-09-01 Thread Hereward Cooper
Hi, How can I get my machine to automatically update a file with my current dynamic IP address? Is there a enviroment varriable which i can read it from, write it to a file, then upload it to a hidden section of a public web site, so that selected people (who know where the file is) can use it to S