#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    entlegen
    Posts
    442
    Rep Power
    13

    what is myipaddress ( wanip)


    according to goggle

    http://groups.google.com/groups?hl=e...net%26rnum%3D7


    MYIP=`lynx -dump http://whatismyipaddress.com | sed -n '/Your IP address:/{n;p;}'| sed 's/^[ \t]*//'`

    I save the script , chmod , then execute, nothing.
    this script does not work at all!


    is there working script.

    whatismyipaddress.com shows the wrong IP too!!!!!!!!!
    regards,

    wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
    first I must revise C program thro' example, what's next?
  2. #2
  3. #3
  4. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    WTF?? How can that whatismyipaddress.com be trusted for such mission critical system configuration?
  5. #4
  6. 11
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jul 2001
    Location
    Lynn, MA
    Posts
    4,635
    Rep Power
    82
    1) Get yourself a good linux book. Read, understand, repeat with another book.

    2) Read the documentation included with your distribution.

    3) Pay someone to configure your system, given that pretty much all your questions are beyond your current skill level, and it doesn't appear that you want to learn.

    That said, if you're looking to get your IP into a perl script, the link below may help.

    http://www.geekuprising.com/p/g/show_page/15/
  7. #5
  8. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    entlegen
    Posts
    442
    Rep Power
    13
    WTF??


    what the fu** ?

    How can that whatismyipaddress.com be trusted for such mission critical system configuration?


    it claims to find out your current IP.

    I am seeking help from burry now. HE may be help.

    I have more text to read and then trial in testing environment and then raised question. what is wrong here ?

    FreeBSD used to be nice to me.

    http://www.geekuprising.com/p/g/show_page/15/

    If you have ADSL/cable with a router, you probably have a dynamically assigned internal IP on your machine. This set of scripts will help you automagically get your IP in combination with a box outside your router.
    Because your internal machine will have an internal IP assigned by the router, this one is tricky. My suggestion- if you want to run a service on your box, figure out "one-to-one NAT" translation, and give your machine a static internal IP via your router. You can then route external requests directly to your box sitting on the internal IP, allowing you to run services predictably.
    Because your machine has the internal IP bound to it's adapter, and doesn't have a full qualified domain name, you have to look outside your router to get your IP. That's what this pair of scripts does. You'll need to have the "ipreport.pl" script set up on some other box, external to your router.


    You then ding the "ipreport.pl" <---------- where is it?????????

    script with the "ipget.pl" <--------------- where is this script in your site. our htdig does not search out.


    script from the box whose IP you want to sniff out, and voila! You've got your external IP!

    #!/usr/bin/perl -wT
    # ipreport.pl- the script that sits external to your router
    use strict;
    use CGI;
    my $q=CGI->new();
    print $q->header().$q->remote_addr()."\n";

    and

    #!/usr/bin/perl -wT
    # ipget.pl- the script that retrieves your IP for you. Run this on the box
    # whose IP you want to figure out. You can make this part of a larger program,
    # obviously.
    use LWP::Simple;
    my $ip=get("http://the.other.box.com/cgi-bin/ipreport.cgi");
    print $ip;
    Last edited by pentium5; March 4th, 2002 at 05:49 PM.
    regards,

    wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
    first I must revise C program thro' example, what's next?
  9. #6
  10. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    entlegen
    Posts
    442
    Rep Power
    13
    I solved this with DDCLIENT with "," in the ddlclient.conf. it is fine and good great.
    Last edited by pentium5; March 4th, 2002 at 08:08 PM.
    regards,

    wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
    first I must revise C program thro' example, what's next?

IMN logo majestic logo threadwatch logo seochat tools logo