How to get my own IP
Björnke von Gierke
bvg at mac.com
Mon Dec 30 07:57:18 EST 2002
I was trying to get my IP for a little chat program I wrote, but with
my code I always get the local IP of my subnet (192.168.1.2) To my
understanding it is not possible to connect to me if the other Host
does only know that IP. So is there a bug, is it because I coded this
wrong, or is that IP sufficient? (www.yanku.net is the URL of a friend
of mine)
Script:
on mouseUp
open socket "www.yanku.net:80" with message connected
end mouseup
on connected
put the hostAddress of "www.yanku.net:80" into field "myIP"
close socket "www.yanku.net:80"
end connected
thanks in advance
Björnke von Gierke
More information about the use-livecode
mailing list