i tried to get current system domain ip address using c++ win32 API.
How Can i Achieve this?
i tried to get current system domain ip address using c++ win32 API.
How Can i Achieve this?
If you mean a way to get your public ip behind a NAT, you have to open a socket, bind it and connect to a server and request it to answer you what your ip is. not an easy task. If you only want to know your private ip, you can read this thread on stackoverflow : Get the IP Address of local computer
If you mean the IP address(es) of your local system's DNS server(s), you could execute ipconfig /all
and parse the output for it/them.