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

Author Topic: Can sfml open Port (computer networking) in firewall?  (Read 5366 times)

0 Members and 4 Guests are viewing this topic.

owl721

  • Newbie
  • *
  • Posts: 10
    • View Profile
Can sfml open Port (computer networking) in firewall?
« on: February 24, 2016, 06:38:38 pm »
Can sfml open ports?
« Last Edit: February 25, 2016, 07:20:59 am by owl721 »

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Can sfml open ports?
« Reply #1 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 documentation).
« Last Edit: February 24, 2016, 08:31:13 pm by Jesper Juhl »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Can sfml open ports?
« Reply #2 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

owl721

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Can sfml open ports?
« Reply #3 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Can sfml open Port (computer networking) in firewall?
« Reply #4 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

owl721

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Can sfml open Port (computer networking) in firewall?
« Reply #5 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Can sfml open Port (computer networking) in firewall?
« Reply #6 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?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

owl721

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Can sfml open Port (computer networking) in firewall?
« Reply #7 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

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Can sfml open Port (computer networking) in firewall?
« Reply #8 on: February 26, 2016, 03:18:13 pm »
Look into a UPNP library.