Re: howto use curl to get Internet IP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim wrote:
Dave Burns wrote:
On Fri, Jun 6, 2008 at 7:48 AM, Jim <mickeyboa@xxxxxxxxxxxxx> wrote:
I want to use  curl to get my Internet IP address, and getting it to
ddclirent.
Using  getip.com and dyndns.org to get my IP for ddclient, isn't working
out, they shutout ddclient after awhile from getting my Internet IP to
send to dyndns.org .
I understand curl can get the Internet IP for ddclient, does anyone know of
a  HowTo to show me how to do this ?


1) if you insist on this approach, here's a hint:curl -o - http://getip.com/ 2>/dev/null|grep 128
Replace 128 with some part of your IP number that you're confident
will not change. In the example, I used the left 3 digits of my IP
number. Use sed or awk to scrape off the crud that wget will spew out
along with the IP number.

2) why not just use /sbin/ifconfig -a? Your machine knows its own IP
number as well or better than getip.com.

3) why not man curl? That is, read the man page of the command you are
asking about. You don't sound like you've even tried to do your
homework.

Dave

What approach would you suggest that is better to use ?
I have a DSL AP 2Wire783 in front of my computer that does not have the capability of giving me the Internet IP.


You sure about that? I'll admit I have only used about 4 or 5 different dsl modems but all of them could be put in bridging mode.

--
If opinions were really like assholes the we'd each have just one

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux