Re: Getting IP Address of Machine that is Currently Running the Stack

2006-10-26 Thread Dave
Hi, Thanks a lot, that worked great, for anyone that is interested, here is a function to return the local IP address: -- -- -- Get the Local IP Address of this Machine --

Getting IP Address of Machine that is Currently Running the Stack

2006-10-26 Thread Richmond Mathewson
I have done the obvious thing: I have lifted the scripts out of this recent thread and combined them in a stack which I have just uploaded to RevOnline: IP Addresser Credit IS given. Love, Richmond I have just read and signed the

Getting IP Address of Machine that is Currently Running the Stack

2006-10-25 Thread Dave
Hi All, How can I get the IP address of the machine that a stack is running on? Thanks a lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Getting IP Address of Machine that is Currently Running the Stack

2006-10-25 Thread jbv
Dave, I usually do that by sending a get URL request to a cgi script (Rev cgi or php) that runs on a server and that returns the client IP. JB Hi All, How can I get the IP address of the machine that a stack is running on? ___ use-revolution

Re: Getting IP Address of Machine that is Currently Running the Stack

2006-10-25 Thread Eric Chatonet
Hi Dave, Here is an example that might be easier to use: local lIPAddress -- local script variable -- function GetIPAddress local tInternetConnected - put hostNameToAddress(www.runrev.com) empty into tInternetConnected if tInternetConnected then

Re: Getting IP Address of Machine that is Currently Running the Stack

2006-10-25 Thread Mark Schonewille
There are several ways to get your IP address, depending on which address you need. One possibility is this one-liner: put char 1 to -9 of (last word of line ¬ lineoffset(title,url http://www.whatismyip.com;) ¬ of url http://www.whatismyip.com;) Probably you want to split up this line,

Re: Getting IP Address of Machine that is Currently Running the Stack

2006-10-25 Thread Luis
Or run a shell script and parse the output: ifconfig on OS X and ipconfig in Windows. Cheers, Luis. Mark Schonewille wrote: There are several ways to get your IP address, depending on which address you need. One possibility is this one-liner: put char 1 to -9 of (last word of line ¬

Re: Getting IP Address of Machine that is Currently Running the Stack

2006-10-25 Thread Luis
Mark Schonewille wrote: There are several ways to get your IP address, depending on which address you need. One possibility is this one-liner: put char 1 to -9 of (last word of line ¬ lineoffset(title,url http://www.whatismyip.com;) ¬ of url http://www.whatismyip.com;) This will get

Re: Getting IP Address of Machine that is Currently Running the Stack

2006-10-25 Thread Mark Schonewille
Luis, that's why I explicitly distinguished public, LAN and local (machine) IP addresses. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at

Re: Getting IP Address of Machine that is Currently Running the Stack

2006-10-25 Thread Dar Scott
On Oct 25, 2006, at 7:09 AM, Dave wrote: How can I get the IP address of the machine that a stack is running on? Open a datagram socket to a legal IP address. That does not have to be assigned. Then get the hostAddress of that socket. Then close it. The hostAddress will be what you