I am creating a file that uses Socket for exchanging data. When I use Python I have a firewall pop up where I am asked to accept the use of the application, but when my C++ program tries to do the same, the firewall doesn't warn me. My question is what differs in both cases? Is it the language?
I run it on Windows, and the compiled C++ executable doesn't activate the firewall even when it is being run on another computer.
Python
:
import socket
s = socket.socket()
s.bind(("0.0.0.0", 6685))
s.connect(("127.0.0.1", 20545))
C++
:
int main(int argc, char** argv)
{
if (!startUpMenu(argv[0])) // I give the function the path of the application
return 1; // if the application isnt the one in start menu it will stop
const char* ip = "10.0.0.6"; // the ip of the server
Socket client = Socket();
if (client.Connect(ip, 667) == SOCKET_ERROR)
return -1;
while (!client.TelNet()) {} // loops the TelNet comunication
}