Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - RhubarbMonster

Pages: [1]
1
Network / TCP connection sending not working over global IP [Solved]
« on: July 27, 2015, 12:38:53 pm »
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

Pages: [1]