[Gambas-user] Obtain my IP with Gambas

Benoît Minisini gambas at ...1...
Wed Sep 9 18:57:20 CEST 2009


> 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.

Instead of adding thousands lines of code to the interpreter, I think the 
better is parsing the output of the ifconfig command.

-- 
Benoît Minisini




More information about the User mailing list