facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.3k stars 1.02k forks source link

Windows Firewall complaining #68

Open Mellnik opened 9 years ago

Mellnik commented 9 years ago

Whenever I start a compiled client program with raknet, Windows Firewall opens and asks to whitelist the program. Why is that? It is just client program connect to a server. It even happens when using the example code.

Klaim commented 9 years ago

That's normal, you have an executable from nowhere that tries to use the network so the default behaviour of the Windows firewall is to make sure you are aware of this and let you allow it or not. You can change the behaviour in the firewall settings if you want. It will ask permissions once per file path, so if you build an exe and run it and run it again it will not ask again. However if you build in Release mode then in Debug, each one have a different path so it will ask once.

Mellnik commented 9 years ago

But I didn't get this message with other internet applications like Firefox, Skype, GitHub Windows or SA-MP/MTA:SA (uses RakNet).

ensiform commented 9 years ago

Those applications are signed and trusted so they are allowed by default I think.

Mellnik commented 9 years ago

Uh are you all united against me? Ok, another example: Compiling code with selfcompiled libcurl doesn't ask me too.

larku commented 9 years ago

That'll most likely be because lubcurl will be using port 80, or 443, etc all trusted ports.