Replace IP Address with Web Address

I am using #include<winsock2.h> and ws2_32.lib and was wondering how I could connect to port 80 using a web address rather than an IP address.

server.sin_addr.s_addr = inet_addr("127.0.0.1");
server.sin_family = AF_INET;
server.sin_port = htons( 80 );

I know how to parse the information I just need to convert IP to Web.

Many Thanks,

Matt.
Topic archived. No new replies allowed.