Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #196044
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Get the external IP address from a Linux box |
| Date | 2018-05-24 13:20 +0200 |
| Message-ID | <vSWrN-8ot-21@gated-at.bofh.it> (permalink) |
| References | <vSS4N-5l7-3@gated-at.bofh.it> <vST0R-5UC-5@gated-at.bofh.it> |
| Organization | A noiseless patient Spider |
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, especially if one site is unreachable. >> >> Something I can run from the command line, and that would return the >> external IP address. > > 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 routed to the internet by your ISP. In > that case your link will have 2 *local* addresses (e.g. 192.168.. or > 10...) : one for your side, one for ISP side. You first enter ISP's > local IP pool, and from there exit to the internet over a real address > from ISP's address block. > 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.255.255) or RFC6598 (100.64.0.0 - 100.127.255.255) space. I've seen some of these jokers use space in some of the "old /8" space - stuff owned by the likes of the US DOD, AT&T, HP, etc. who got in back in the early days. So even if it looks like you have a "public" IP address on your router, it's always a good idea to verify from the outside. -- |_|O|_| Registered Linux user #585947 |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Get the external IP address from a Linux box André Rodier <andre@rodier.me> - 2018-05-24 08:40 +0200
Re: Get the external IP address from a Linux box conover@rahul.net (John Conover) - 2018-05-24 08:50 +0200
Re: Get the external IP address from a Linux box likcoras <likcoras@riseup.net> - 2018-05-24 09:00 +0200
Re: Get the external IP address from a Linux box conover@rahul.net (John Conover) - 2018-05-24 09:30 +0200
Re: Get the external IP address from a Linux box André Rodier <andre@rodier.me> - 2018-05-24 10:00 +0200
Re: Get the external IP address from a Linux box <tomas@tuxteam.de> - 2018-05-24 09:00 +0200
Re: Get the external IP address from a Linux box Joe <joe@jretrading.com> - 2018-05-24 09:10 +0200
Re: Get the external IP address from a Linux box Alberto Luaces <aluaces@udc.es> - 2018-05-24 09:10 +0200
Re: Get the external IP address from a Linux box André Rodier <andre@rodier.me> - 2018-05-24 09:20 +0200
Re: Get the external IP address from a Linux box <tomas@tuxteam.de> - 2018-05-24 09:40 +0200
Re: Get the external IP address from a Linux box Joe <joe@jretrading.com> - 2018-05-24 11:30 +0200
Re: Get the external IP address from a Linux box Joel Rees <joel.rees@gmail.com> - 2018-05-31 02:10 +0200
Re: Get the external IP address from a Linux box Stefan Monnier <monnier@iro.umontreal.ca> - 2018-05-24 22:20 +0200
Get the external IP address from a Linux box Erwan David <erwan@rail.eu.org> - 2018-05-24 22:40 +0200
Re: Get the external IP address from a Linux box Miles Fidelman <mfidelman@meetinghouse.net> - 2018-05-24 23:30 +0200
Re: Get the external IP address from a Linux box Richard Hector <richard@walnut.gen.nz> - 2018-05-26 08:20 +0200
Re: Get the external IP address from a Linux box Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-24 09:40 +0200
Re: Get the external IP address from a Linux box <tomas@tuxteam.de> - 2018-05-24 09:50 +0200
Re: Get the external IP address from a Linux box Dan Purgert <dan@djph.net> - 2018-05-24 13:20 +0200
Re: Get the external IP address from a Linux box Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-25 03:30 +0200
Re: Get the external IP address from a Linux box Dan Purgert <dan@djph.net> - 2018-05-25 20:40 +0200
Re: Get the external IP address from a Linux box Peter Ludikovsky <peter@ludikovsky.name> - 2018-05-24 13:20 +0200
Re: Get the external IP address from a Linux box Greg Wooledge <wooledg@eeg.ccf.org> - 2018-05-24 14:10 +0200
Re: Get the external IP address from a Linux box Dan Purgert <dan@djph.net> - 2018-05-24 15:00 +0200
Re: Get the external IP address from a Linux box Alan Greenberger <alanjg@ptd.net> - 2018-05-25 03:10 +0200
Re: Get the external IP address from a Linux box Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-26 13:20 +0200
Re: Get the external IP address from a Linux box Alan Greenberger <alanjg@ptd.net> - 2018-05-28 14:10 +0200
Re: Get the external IP address from a Linux box David Wright <deblis@lionunicorn.co.uk> - 2018-05-28 19:50 +0200
Re: Get the external IP address from a Linux box Alan Greenberger <alanjg@ptd.net> - 2018-05-29 14:10 +0200
Re: Get the external IP address from a Linux box David Wright <deblis@lionunicorn.co.uk> - 2018-06-02 16:40 +0200
Re: Get the external IP address from a Linux box Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-28 23:20 +0200
Re: Get the external IP address from a Linux box Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-29 15:00 +0200
Re: Get the external IP address from a Linux box David Wright <deblis@lionunicorn.co.uk> - 2018-06-02 16:50 +0200
Re: Get the external IP address from a Linux box Michael Stone <mstone@debian.org> - 2018-05-26 03:10 +0200
Re: Get the external IP address from a Linux box Kenneth Parker <sea7kenp@gmail.com> - 2018-05-26 03:20 +0200
Re: Get the external IP address from a Linux box Greg Wooledge <wooledg@eeg.ccf.org> - 2018-05-29 15:10 +0200
Re: Get the external IP address from a Linux box Kenneth Parker <sea7kenp@gmail.com> - 2018-05-26 03:10 +0200
Re: Get the external IP address from a Linux box André Rodier <andre@rodier.me> - 2018-05-26 13:00 +0200
Get the external IP address from a Linux box Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2018-05-27 13:20 +0200
Re: Get the external IP address from a Linux box André Rodier <andre@rodier.me> - 2018-05-27 14:20 +0200
Re: Get the external IP address from a Linux box Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2018-05-27 15:50 +0200
Re: Get the external IP address from a Linux box André Rodier <andre@rodier.me> - 2018-05-27 16:20 +0200
csiph-web