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,
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
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
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
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
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
-- 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
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
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
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
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
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.
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
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
14 matches
Mail list logo