I used the example program of the chat client/server with TCP Ports. Just like this:
//Server:
sf::SocketTCP Server;
Server.Listen(Port); //returns true
//Client
sf::IPAddress ServerAddress("An IP");
sf::SocketTCP Client;
Client.Connect(Port, ServerAddress); //Error
If I connect to my own LAN-IP Adress, the program works. If I connect to 127.0.0.1, the program works.
But if i try to connect to someone else's internet IP or even my own Internet IP, I cannot get a connection.
I think my firewall is blocking this connection attempt. But I also cannot connect with Ports that work in other programs for me.
Do I have to call another function which "unblocks" the port or something?