From 90c0448b8d21e91dbca95cdb30e94f4461c81187 Mon Sep 17 00:00:00 2001 From: Dima YaFlay <93622229+YaFlay@users.noreply.github.com> Date: Sun, 21 Nov 2021 18:42:03 +0300 Subject: [PATCH] 1.0.1 fixing bugs --- ip_adress.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ip_adress.py b/ip_adress.py index b22d2d5..d3daa56 100644 --- a/ip_adress.py +++ b/ip_adress.py @@ -1,6 +1,7 @@ import socket - -HOST = os.read('my_ip.txt') # Standard loopback interface address (localhost) +ip = open('my_ip.txt') +ip_adress = ip.read() +HOST = ip_adress # Standard loopback interface address (localhost) PORT = 65432 # Port to listen on (non-privileged ports are > 1023) with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: