Executable that tells you your IP?

I'm new to C++ and programming in general (I'm in my first programming class) and I have a quick question. I didn't have the code yet. I am just wondering if there is a way to make an executable that tells you your IP address. There is more to it than that, but that is pretty much where my program starts. Without this, I don't have my program.

Sorry for not having any code ready, it's just that this is where my program starts, so there is no code that I could have written yet.
There are such programs, so it is possible. However, is it OS-specific.

You must remember that a computer can have more than one IP-address.
Topic archived. No new replies allowed.