SFML community forums
Help => Network => Topic started by: Janneman on November 06, 2013, 08:26:47 pm
-
Hi all!
I'm trying to get the sockets example to work. If I run both server and client on the same computer, and then enter 'localhost' when the client asks for the server name, it works smoothly. But when I run them both on a seperate computer, no messages are sent at all. This problem occurs with TCP ánd UDP.
The computers both run windows 7 home premium 64bits, and I use sfml 2.1.
Do I maybe have to forward the ports of my router? Or what else can be the problem?
Thanks in advance :)
Janneman
-
Are you typing Localhost on the two separate computers? Local host basically tells the computer to connect to itself, so obviously that won't work when using 2 different computers.
-
Yeah, I know. When I'm running client And server on the same computer, I use localhost, but on two computers I use the IP-adress of the computer the server runs on.
-
Are you port forwarding from your router to the server?
-
No, I didn't try that yet. When I get home, I'll try it.