Skip to content
Snippets Groups Projects
Commit 624c3d9d authored by Dominik Fuhrmann's avatar Dominik Fuhrmann
Browse files

port change

parent a945f0a0
No related merge requests found
......@@ -42,7 +42,7 @@ def run_client(file_path):
return
# Sichere Verbindung mit dem Server herstellen
with socket.create_connection(("192.168.178.51", 443)) as sock:
with socket.create_connection(("192.168.178.51", 8080)) as sock:
with context.wrap_socket(sock, server_hostname="server") as ssl_sock:
print("Mit dem Server verbunden!")
......
......@@ -36,9 +36,9 @@ def run_server():
# Server-Socket erstellen
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.bind(("0.0.0.0", 443)) # Auf allen Schnittstellen lauschen
sock.bind(("0.0.0.0", 8080)) # Auf allen Schnittstellen lauschen
sock.listen(5)
print(f"Server läuft auf Port 5000 mit Cipher Suite: {cipher_suite}...")
print(f"Server läuft auf Port 8080 mit Cipher Suite: {cipher_suite}...")
while True:
# Verbindung akzeptieren
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment