diff --git a/deluge/core/core.py b/deluge/core/core.py index 9839af3df..4964980a2 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -89,7 +89,7 @@ class Core( if self.config["allow_remote"]: hostname = "" else: - hostname = "localhost" + hostname = "127.0.0.1" # Setup the xmlrpc server try: diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 0273f568b..b028b7e09 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -333,7 +333,7 @@ class ConnectionManager(component.Component): online = True host = None try: - host = xmlrpclib.ServerProxy(uri) + host = xmlrpclib.ServerProxy(uri.replace("localhost", "127.0.0.1")) host.ping() except socket.error: online = False