SFML community forums

Help => Network => Topic started by: owl721 on February 24, 2016, 06:38:38 pm

Title: Can sfml open Port (computer networking) in firewall?
Post by: owl721 on February 24, 2016, 06:38:38 pm
Can sfml open ports?
Title: Re: Can sfml open ports?
Post by: Jesper Juhl on February 24, 2016, 08:20:11 pm
If you mean network ports, then yes. The network module can do that (which would have been obvious if you had bothered to read the (http://www.sfml-dev.org/tutorials/2.3/network-socket.php) documentation (http://www.sfml-dev.org/documentation/2.3.2/group__network.php)). (http://www.sfml-dev.org/learn.php)
Title: Re: Can sfml open ports?
Post by: Nexus on February 24, 2016, 11:01:50 pm
I'm familiar with the term "open a port" in connection with firewall configuration. But this has nothing to do with SFML, so I assume you mean what Jesper mentioned, namely "open a socket and connect it to a port".

As you see by our guesses, repeating only the thread title in the post is not the best way of explaining the problem.
Title: Re: Can sfml open ports?
Post by: owl721 on February 25, 2016, 07:19:06 am
I'm familiar with the term "open a port" in connection with firewall configuration. But this has nothing to do with SFML, so I assume you mean what Jesper mentioned, namely "open a socket and connect it to a port".

As you see by our guesses, repeating only the thread title in the post is not the best way of explaining the problem.

Can sfml open Port (computer networking) in firewall(like Windows Firewall), NOT SOCKET. And how progams like steam do it?
Title: Can sfml open Port (computer networking) in firewall?
Post by: eXpl0it3r on February 25, 2016, 08:58:30 am
No and Steam.doesn't do anything. Usually if you try to open a port the Windowa firwall will complain on its own and you can accept or deny.
Title: Re: Can sfml open Port (computer networking) in firewall?
Post by: owl721 on February 25, 2016, 11:11:18 am
No and Steam.doesn't do anything. Usually if you try to open a port the Windowa firwall will complain on its own and you can accept or deny.
What about uTorrent?
Title: Can sfml open Port (computer networking) in firewall?
Post by: eXpl0it3r on February 25, 2016, 12:01:53 pm
The (Windows) firewall is a security feature and should not be deliberately worked around. If a port should be opened then the user should have a saying in that.

What are you trying to achieve anyways?
Title: Re: Can sfml open Port (computer networking) in firewall?
Post by: owl721 on February 25, 2016, 12:21:49 pm
What are you trying to achieve anyways?
1. i want to create client which could share game files like maps and models with another client.
2. for easy server setup
Title: Re: Can sfml open Port (computer networking) in firewall?
Post by: R23MJ on February 26, 2016, 03:18:13 pm
Look into a UPNP library.