How to get my own IP address using WinINet functions

869 Views Asked by At

How can I get my own IP address using WinINet APIs? If it's not possible using WinINet APIs, counld you please suggest which Win32 library I have to use for this purpose?

I need the library which I can use in my C++ code. I don't need a C# or .NET library.

Actually I have to use it in my Qt application.

2

There are 2 best solutions below

2
On BEST ANSWER
0
On

Do you mean the public IP address or your interfaces' IP address? The public IP address can be extracted from the page whatismyip.com. The other answer gives you the local IP addresses.