My program needs to know the IP address assigned to the local compi. It uses a dialup connection.

winsock's local host returns 127.0.0.1; which does'nt help.

Anyone knows how to get the IP programmatically ?