We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bbda20 commit 85220c7Copy full SHA for 85220c7
shaker.py
@@ -16,7 +16,7 @@
16
class server:
17
18
def __init__(self,port):
19
- self.ip = socket.gethostbyname(socket.gethostname())
+ self.ip = socket.gethostbyname('0.0.0.0')
20
self.port = port
21
self.l = "cd"
22
self.o = system()
@@ -33,7 +33,7 @@ def start(self):
33
_exit(1)
34
try:
35
so.listen(1)
36
- host = socket.gethostbyname(0.0.0.0)
+ host = socket.gethostbyname(socket.gethostname())
37
print "[%s:%s] Waiting for connection ..."%(host,self.port)
38
39
0 commit comments