howto use curl to get Internet IP

Mikkel L. Ellertson mikkel at infinity-ltd.com
Fri Jun 6 22:47:45 UTC 2008


Patrick O'Callaghan wrote:
> 
> OTOH it's likely that there is a way to scrape the modem's web control
> page for the IP number without having to ping external addresses. Might
> be a bit messy though.
> 
> Actually the cleanest solution is probably just to use a service such as
> dyndns and register a domain name (the basic service is free), then just
> look it up when you need to. It means installing ddclient, but it's in
> the Fedora repos.
> 
It may be easy to do. I do it on a Speedstream all the time. 
ddclient does it with no problems. As long as the status page has 
something you can key on, and then whitespace between the key and 
the IP address.

use=fw, fw=192.168.0.1/, fw-skip='IP Address' # found after IP Address

Mikkel
-- 

   Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080606/d740d765/attachment-0001.sig>


More information about the fedora-list mailing list