List Info

Thread: IP address




IP address
user name
2006-05-02 17:48:56
Hi

How do i get the IP address of computer? i could figure out
how i can 
get the name, but i really want to use the IP address.
How do i make my daemon public in the network?

cheers

anton
_______________________________________________
avahi mailing list
avahilists.freedesktop.org
h
ttp://lists.freedesktop.org/mailman/listinfo/avahi
IP address
user name
2006-05-04 21:21:19
On Tue, 02.05.06 19:48, anton feldmann (anton.feldmannuni-bielefeld.de) wrote:

> Hi
> 
> How do i get the IP address of computer? i could figure
out how i can 
> get the name, but i really want to use the IP address.
> How do i make my daemon public in the network?

Mmm?

These questions seem a little off-topic to me. 

Anyway: a machine usually has more than one IP address
assigned. The
easiest way to query the list of local addresses on
BSD/Linux is by
using the SIOCGIFCONF ioctl call on a socket fd. See
netdevice(7) for
more information. This will return only IPv4 addresses,
though.

I don't understand your second question.

Lennart


-- 
Lennart Poettering; lennart [at] poettering [dot] net
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.net/lenn
art/
_______________________________________________
avahi mailing list
avahilists.freedesktop.org
h
ttp://lists.freedesktop.org/mailman/listinfo/avahi
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )