Public ip address
soapdog at mac.com
Sat Jul 24 17:33:29 CDT 2004
On Jul 24, 2004, at 7:13 PM, Roger Amar wrote:
> I can't find how to get with Revolution the ip address provided by the
> ISP, to avoid the use of http://www.whatismyip ?
> Thanks for your help.
if you're on MacOS X or Unix-like enviroment you can do the arcane
put "ifconfig | grep 'inet'" into tShellCommand
replace "'" with quote in tShellCommand
That will give you a nice string with all your network addresses for
both ipv4 and ipv6, also will give you some nice info on broadcast and
netmasks, each line will be an address, like this:
[soapdog:~] andregar% ifconfig | grep "inet"
inet6 ::1 prefixlen 128
inet6 fe80::1 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::203:93ff:fe6d:12e prefixlen 64 scopeid 0x4
inet 18.104.22.168 netmask 0xffffff00 broadcast 22.214.171.124
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
See, I tested on terminal, so don't mind the prompt. the first and
second lines are related to that Rendevouz thing (I think), the third
is the localhost, the fourth is the localhost too but in ipv6, the
fifith is THE IP FROM THE ISP, and the last is my local network IP for
I have a home network here, just parse it and you have all address you
Hope I helped...
Andre Alves Garzia ð 2004 ð BRAZIL
More information about the use-livecode