Re: [Gambas-user] Obtain my IP with Gambas

2013-10-29 Thread Dimitris Anogiatis
you don't need a root account or root priviledges to get the IP address: just do a Shell ip -4 addr show eth0 | grep inet TO ipaddr and just parse the IP from that line. Note that eth0 is the name of your network interface. Hope this helps to simplify things in your code. Dimitris On Mon,

Re: [Gambas-user] Obtain my IP with Gambas

2013-10-28 Thread PICCORO McKAY Lenz
I try to recover my local ip from network, and tryng this code, why skip the dialog?: Public Sub btnenviocentral_Click() Dim ipaddr As Integer = 2 fauth = New FAuth If fauth.ShowModal() Or Not fauth.inputcodigo Then ' if nothinhg was input cancel an try again Return Else

Re: [Gambas-user] Obtain my IP with Gambas

2013-10-28 Thread Jussi Lahtinen
I try to recover my local ip from network, and tryng this code, why skip the dialog?: Hard to say without knowing what FAuth does. Can you make little runnable project to demonstrate your problem? when executed, and imput code are same as 1234, dont print and skip lines follow Probably

Re: [Gambas-user] Obtain my IP with Gambas

2013-10-28 Thread PICCORO McKAY Lenz
From: Jussi Lahtinen jussi.lahti...@gmail.com Hard to say without knowing what FAuth does. Can you make little runnable project to demonstrate your problem? not necesary, the code explint itseft.. but thanks was my fault, i declared the result of shell as integer, event string... that's why skip

[Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread David Villalobos Cambronero
Hi, is there an easy way to obtain my IP address? Regards -- David -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread nando
Message --- From: David Villalobos Cambronero david_villalobo...@yahoo.com To: Gambas Inglés gambas-user@lists.sourceforge.net Sent: Wed, 9 Sep 2009 07:52:43 -0700 (PDT) Subject: [Gambas-user] Obtain my IP with Gambas Hi, is there an easy way to obtain my IP address? Regards

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread David Villalobos Cambronero
-- Original Message --- From: David Villalobos Cambronero david_villalobo...@yahoo.com To: Gambas Inglés gambas-user@lists.sourceforge.net Sent: Wed, 9 Sep 2009 07:52:43 -0700 (PDT) Subject: [Gambas-user] Obtain my IP with Gambas Hi, is there an easy way to obtain my IP address

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Jean-Yves F. Barbier
David Villalobos Cambronero a écrit : Hi, is there an easy way to obtain my IP address? by shell, I use: ifconfig | grep inet | cut -d: -f2 | cut -d' ' -f1 | grep -v 127 if you have multiple interfaces, you must add (for each unwanted): | grep -v nnn.nnn.nnn.nnn at the end HTH JY -- I don't

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Benoît Minisini
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. -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread David Villalobos Cambronero
Hi, It works just fine. Thanks Jean-Yves Regards -- David - Original Message From: Jean-Yves F. Barbier 12u...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Wednesday, September 9, 2009 9:44:14 AM Subject: Re: [Gambas-user] Obtain my IP

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Ron_1st
On Wednesday 09 September 2009, Benoît Minisini wrote: 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

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Benoît Minisini
On Wednesday 09 September 2009, Benoît Minisini wrote: 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.

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : On Wednesday 09 September 2009, Benoît Minisini wrote: 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

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Ron_1st
On Wednesday 09 September 2009, Benoît Minisini wrote: 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. Yes it can be done. More IP at one interface. I have a remote sites IP addres as second IP