Hey, I'm having an issue sending data between my client and server programs over global IP addresses that I just cant seem to figure out.
My set up is as follows:
- A server program running on my computer, sat behind a router
- The router has successfully been port forwarded so that incoming connections reach me
- A friends computer running my client program that sends a connection request to my server
- When the client is running on my local network or own computer, the connections work flawlessly
The issue here is that I am able to receive the clients connection request (confirmed), but I am not able to send a packet down the TCP connection from the server to the client with any data.
Calls to send packets down the connection are returning sf::Socket::Status::Done, so it seems to be succeeding. Am I missing something obvious here?
[Solved]
Thought I'd come back and update in case anyone had the same issue:
Turns out I had an awful case of the 'magic number' port. The brand of router I use just so happens to be blocking certain types of traffic on the port number I (semi) randomly picked.
Advice to those with a similar issue? Try at least 10 different ports if you're having no luck