Quote Originally Posted by TwistedMetal View Post
Thanks Robwhit.

Can somebody provide some help regarding finding the IP Address please.
You could pass the current hostname to gethostbyname() but this is not guaranteed to be the actual address of the hardware interface (for instance, if the hostname is misconfigured). How you get this address is going to vary from platform to platform. Calling ifconfig is not actually a terribly bad way to do it. ifconfig also gives you tons of other info as well.