Public ip address

Roger Amar Roger at logram.com
Mon Jul 26 16:42:43 EDT 2004


Thanks a lot for your numerous replies. This group is really great !

Owing to the fact that our customers use routers, in more from various manufacturers and that they are working on different platforms (MacOS 9, MacOS X and Windows), the only simple and reliable solution that I found at this time is to import the Web page of whatismyip.com and to extract the IP address.

For those who are interested, Timbuktu is able to reach only one of the computers of the LAN, the one whose the local address is specified into the router. In more, one must create a new service for Timbuktu using the ports 1417, 1420 and 407 both TCP and UDP.
If one of you need some help about this marvelous remote controller, I think we could be useful, since we maintain more than 200 computers using Timbuktu.

Roger;


-----Message d'origine-----
De : use-revolution-bounces at lists.runrev.com [mailto:use-revolution-bounces at lists.runrev.com] De la part de Sarah Reichelt
Envoyé : lundi 26 juillet 2004 05:41
À : How to use Revolution
Objet : Re: Public ip address

> We have to maintain a radio stations network running our automation 
> software,MacBroadcast*, via Timbuktu. To take the control of a distant 
> computer, PC or Macintosh, we have to know the public IP address to 
> connect to that computer and do our job. Since the IP address provided 
> by the ISP is not permanent, I want to write a simple code which once 
> an hour, is able to send us the actual IP public address of every 
> radio station. (Some of them have a fixed IP Address which never 
> change but the cost of this solution is about 20 $ per month.) Using 
> solutions like DynDNS which is supposed to translate the IP address to 
> a fixed one is not a secure solution.
> I want to do what www.whatismyip.com is able to do.
> The solutions suggested by this list are just able to return the lan 
> ip address.
>
> Thanks to all of you for your replies
>
> Roger;
>
Are you connecting through a router with a web interface? If so you can connect to the router and read the allocated IP address directly from it. Here is the script that works for my Netgear RP114 router, with tRouter being the address for the router, tName being the login name and tPass being my password. You would have to experiment to see the page address and exact text format.

   put "http://" & tName & ":" & tPass & "@" & tRouter & "/mtenSysStatus.html" into theURL
   put URL theURL into theData
   get lineOffset("IP Address :", theData)
   put line it to it+1 of theData into theData
   put word 1 of line 2 of theData into ipAddr

Cheers,
Sarah

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list