Networking Forums

Networking Forums > Computer Networking > Linux Networking > How can a process recognise its IP address?

Reply
Thread Tools Display Modes

How can a process recognise its IP address?

 
 
Riadh Elloumi
Guest
Posts: n/a

 
      07-25-2003, 02:59 PM
Hi all,

If a C program runs on a machine which have two or more IP addresses
(127.0.0.1, 12.50.27.11, etc), how could it identify its IP address
after a gethostbyname call ?

Thanks in advance,
Riadh.

 
Reply With Quote
 
 
 
 
Riadh Elloumi
Guest
Posts: n/a

 
      07-25-2003, 03:29 PM
I found it: I will use aliases provided by gethostbyname!


Riadh Elloumi wrote:
> Hi all,
>
> If a C program runs on a machine which have two or more IP addresses
> (127.0.0.1, 12.50.27.11, etc), how could it identify its IP address
> after a gethostbyname call ?
>
> Thanks in advance,
> Riadh.
>



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Point does not recognise Network kevin Wireless Networks 1 08-04-2006 07:42 PM
How do you ger the OS to recognise a USB Wi-Fi adapter? Arawak Linux Networking 1 01-15-2006 02:49 AM
Persistent source IP address per process id on a multihomed computer? Peter Windows Networking 0 03-09-2005 02:21 PM
DUN won't recognise modem Michael Anders Windows Networking 0 05-09-2004 12:26 AM
speedtouch 330 - XP won't recognise it Antony Broadband 4 10-02-2003 11:03 PM



1 2 3 4 5 6 7 8 9 10 11