Mailinglist Archive: opensuse (1256 mails)

< Previous Next >
Re: [opensuse] How can I get the external IP on a script?
On 2017-06-01 10:12, Andreas Mahel wrote:
On 31.05.2017 22:19, Carlos E. R. wrote:
No, it is working for me now, and fast, on my desktop computer. On my laptop
it did not, for two days at least.

desktop:
cer@Telcontar:~> wget -qO - checkip.dyndns.org
<html><head><title>Current IP Check</title></head><body>Current IP Address:
X.X.X.X</body></html>

laptop:
<html><head><title>Current IP Check</title></head><body>Current IP Address:
Y.Y.Y.Y</body></html>


The responses are the same, the only difference is the IP number.

I don't understand it. Maybe different versions of the apps. I'll log the
versions here for comparing later:

GNU Wget 1.14 built on linux-gnu. wget-1.14-8.3.1.x86_64
cut (GNU coreutils) 8.25 coreutils-8.25-1.4.x86_64


Perhaps a locale difference?

Just a thought: could it be that the laptop connects through a different
router to the internet? Maybe using the WLAN of a neighbor or similar?

It certainly does, but that only means the IP is different.
You can see above the output of wget on both cases, and it is exactly
the same bar the IP numbers. Unless there are invisible chars.

--
Cheers / Saludos,

Carlos E. R.
(from 42.2 x86_64 "Malachite" at Telcontar)

< Previous Next >
References