Connecting 2 computers over internet

I'm trying to make my 1v1 game playable online and I would like to have the 2 players connected directly rather than trough a server.

The problem I'm having is that I don't have any experience with server client communication or internet libraries in c++, so I would be glad if someone would give me some tips like what library to use, maybe a link to some tutorials or even better an example of how you did something similar in c++.

Thanks in advance.
Last edited on
@CLman94 thanks, this looks interesting. But looks like I have trouble linking the ws2_32.lib in the build options. I'm using codeblocks, could you tell me what am I suppose to write in the linker?
Thanks
Project -> Build Options
Goto tab "Linker Settings"
Add the library under "Link Libraries"

I use VS C++ so I'm not entirely sure it will work.
Topic archived. No new replies allowed.