View previous topic :: View next topic |
Author |
Message |
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Mon Sep 11, 2017 6:23 pm Post subject: Need to find my public ip address using a script. -- Solved |
|
|
Hi,
I need to find my public ip address using a script that will go into cron.
I need to update my ddns entry, but the tools provided by the dns provider to update don't support my router. So I need to do the equivalent of googling "what's my ip address" and get an ipv4 address back out.
For the record a wget on google and a few other search engines gets "access denied." I found a site that does let wget grab the address but I'm not sure how long it will last before they block it too.
So if there's some standard way of finding out, I'd love to hear about it.
Last edited by 1clue on Mon Sep 11, 2017 6:56 pm; edited 1 time in total |
|
Back to top |
|
|
Apheus Guru
Joined: 12 Jul 2008 Posts: 422
|
Posted: Mon Sep 11, 2017 6:32 pm Post subject: |
|
|
Code: | wget -q -O - http://ipecho.net/plain |
_________________ My phrenologist says I'm stupid. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Mon Sep 11, 2017 6:54 pm Post subject: |
|
|
Fantastic! Thanks. |
|
Back to top |
|
|
|