Welcome to Dilip's Home Page

Dilip's Head
HOME
PHOTOS
CONTACT ME
COURSES
PROJECTS
PUBLICATIONS
TEACHING
TALKS
ACTIVITIES
SOFTWARE
LINKS
CV
GUEST BOOK
(View/Sign)
Get Firefox!


Get the local IP address of the machine in a portable manner

Finding the local IP address of your machine is a primitive you often need. The way to do this differs from OS to OS. On this page you will find a function to find the local IP address of a machine that works on Linux, Windows and Mac OS X. The getLocalAddress() is basically a wrapper with ifdefs for different operating systems. Make sure that correct ifdefs are enabled when you use the code.

Here is the code: getlocalip.tar.gz

If you find the code useful or find bugs, please do send me an email.

Latest Info

What are you Grateful For?

My Wife's New Home Page

Last Update: Saturday, 08-Apr-2006 13:33:57 PDT; unique visitors since Nov 15, 2005. [Site Stats]