[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: query ip adress
From: aleXXX <alexander.neundorf () gmx ! net>
Date: 2001-10-18 22:44:11
[Download RAW message or body]
On Thu 18 Oct 01 17:10, Malte Starostik wrote:
> Am Thursday 18 October 2001 16:57 schrieb Thomas Schubert:
> > hi,
> >
> > Short question:
> > could somebody tell me how to find out the current ip-adress of a dial-up
> > connection, either by script, c function or similar? And it should work
> > for a user, not root, so calling "route" in a script is not it.
>
> /sbin/route works for users too unless you try to modify the routes, no?
> Otherwise, have a look at kdenonbeta/applets/kim/kimd/kimd.c for a q&d
> example of querying the devices' IPs in C.
or kdenetwork/lanbrowsing/kcmlisa/findnic.cpp :-)
> If you use /sbin/ifconfig, make sure to force "C" locale as otherwise the
> output might not be what you're expecting :)
How do I do this ?
Alex
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic