From kde-devel Thu Oct 18 22:44:11 2001 From: aleXXX Date: Thu, 18 Oct 2001 22:44:11 +0000 To: kde-devel Subject: Re: query ip adress X-MARC-Message: https://marc.info/?l=kde-devel&m=100344651829927 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 <<