Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 4th, 2002, 04:08 AM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
what is myipaddress ( wanip)

according to goggle

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

Quote:

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?

Reply With Quote
  #3  
Old March 4th, 2002, 05:58 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
WTF?? How can that whatismyipaddress.com be trusted for such mission critical system configuration?

Reply With Quote
  #4  
Old March 4th, 2002, 08:45 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 81
Send a message via AIM to Hero Zzyzzx
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/

Reply With Quote
  #5  
Old March 4th, 2002, 05:40 PM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
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.

Reply With Quote
  #6  
Old March 4th, 2002, 06:20 PM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > what is myipaddress ( wanip)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap