Hello, I am just beginning on sockets in C and I need to make a program that finds my external IP.
Through a bit of research on this forum I decided to make the program request the source of www.whatsmyip.com and find the IP.
I have got the source:
But please can you tell me how I would extract the IP after the text "your ip is".Code:char* file_contents = GetInternetFile(TEXT("http://www.whatsmyipaddress.com/"), 100000, &sz);
Would I be using scanf?
Or is there a more direct way of doing this?