fixed various bugs in packets.py and spelling_mp.py
This commit is contained in:
parent
9312ae4b10
commit
56f53dccfe
5 changed files with 15 additions and 12 deletions
|
@ -56,10 +56,13 @@ def server():
|
|||
player1 = Player()
|
||||
player2 = Player()
|
||||
|
||||
print("Tell your friend to connect to " + socket.gethostbyname(socket.gethostname()))
|
||||
#print("Tell your friend to connect to " + socket.gethostbyname(socket.gethostname()))
|
||||
#Linus only, duct tape quick fix:
|
||||
ip = input("Your ip addr: ")
|
||||
|
||||
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
server_socket.bind((socket.gethostname(), 1028))
|
||||
#server_socket.bind((socket.gethostname(), 1028))
|
||||
server_socket.bind((ip, 1028))
|
||||
server_socket.listen(1)
|
||||
(client_socket, address) = server_socket.accept()
|
||||
server_socket.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue