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 - SocketProbs

Pages: [1]
1
Network / Having Trouble with SocketTCP::Connect
« on: July 02, 2010, 11:22:16 pm »
Thanks for your fast reply!
Can i find out which ports are opened? Maybe with a SFML function?
And how do other programs connect me to servers (like my browser or online games)? Do they use the same TCP/Port system?

2
Network / Having Trouble with SocketTCP::Connect
« on: July 02, 2010, 10:11:54 pm »
I used the example program of the chat client/server with TCP Ports. Just like this:
Code: [Select]

//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?

Pages: [1]