Aha, but that would not be safe at all. Just by tracking the software, users can find out where to send and get information to your website through your program. But I understand what you are trying to accomplish.
Using winsock will do the work, read more about that.