[Gambas-user] Obtain my IP with Gambas
Jean-Yves F. Barbier
12ukwn at ...626...
Wed Sep 9 19:12:13 CEST 2009
Benoît Minisini a écrit :
>> On Wednesday 09 September 2009, Benoît Minisini wrote:
>>>> mmmm it's OK, I think there must be something like User.IP :)
>>>>
>>>> Regards
>>>>
>>>>
>>>> --
>>>> David
>>> The IP address is not related to the user at all.
>> How about System.IP?
>>
>>
>> However David Villalobos did not tell which IP he wants.
>> I do have a IP at the incomming connection of my building.
>> For me known as WAN and a IP at the box, known to me as LAN.
>>
>> http://www.myipaddress.com for your WAN IP address :)
>>
>> Best regards,
>>
>> Ron_1st
>>
>
> IP address are attached to network interfaces, and I'm not sure that a network
> interface could not have several IP, and different types of IPs.
yep, that's right.
ie: you can easily attach multiple IP adresses to an Ethernet interface as aliases,
thus having one ethernet HW I/F that have 10 different IP addresses.
> Instead of adding thousands lines of code to the interpreter, I think the
> better is parsing the output of the ifconfig command.
that's right too, many programs/scripts return different strings, obliging
the dev to consider each possible return
JY
--
I'm rated PG-34!!
More information about the User
mailing list