is there a way to obtain the Local IP without using the winsock control?

thankx in advance