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
--
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
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
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
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
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,
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 ¬
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
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
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
10 matches
Mail list logo