group256 -3 Junior Poster

Hi everyone,

I'm writing a code to get local ip address and send it to a server. I'm doing socket programming and I'm trying to get Ip address of my machine, and send it to socket server.

In other words, Let's say my ip address (which is the client), is 192.168.10.10 and I want to obtain it in my code and send it to the server. I have googled a lot but to no avail.

Any help would be really appreciated.

Many thanks.