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