Obtaining the IP address of the machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




This worked for me -

pj_in_addr hostip;

pj_gethostip(&hostip);
if (pj_gethostip(&hostip) == PJ_SUCCESS){
     printf("my ip = %s", pj_inet_ntoa(hostip.sin_addr));
}

best,
Nigel

Date: Wed, 23 Apr 2008 10:22:49 +0200
From: abdelkader2006@xxxxxxxxx
To: pjsip at lists.pjsip.org
Subject: Obtaining the IP address of the machine

Hello benny,

How to obtain the IP address of the machine (not 127.0.0.1:localhost) using pjlib.

I have tried some functions from the socket abstration part of pjlib but they return 127.0.0.1.


Please help.

Thanks in advance.


_________________________________________________________________
Connect to the next generation of MSN Messenger?
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080423/8c26aa92/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux