Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

changed IP address selection

  • Loading branch information...
commit 5e60f2a27303cb5cc6d58e557a5657eed0a62e8f 1 parent bcb95ec
Andreas Paul authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/Server.py
2  lib/Server.py
@@ -17,7 +17,7 @@ def __init__(self, port, services):
17 17 sys.setcheckinterval(1000)
18 18
19 19 # should get the IP address
20   - listeningHost = socket.gethostbyaddr(socket.gethostname())[-1][0]
  20 + listeningHost = socket.gethostbyaddr(socket.gethostname())[0]
21 21
22 22 SocketServer.ThreadingTCPServer.allow_reuse_address = True
23 23 self.httpd = SocketServer.ThreadingTCPServer((listeningHost, port),

0 comments on commit 5e60f2a

Please sign in to comment.
Something went wrong with that request. Please try again.