diff --git a/shadowsocks-csharp/Controller/Service/PortForwarder.cs b/shadowsocks-csharp/Controller/Service/PortForwarder.cs index 54ecd49d..5245bb7e 100644 --- a/shadowsocks-csharp/Controller/Service/PortForwarder.cs +++ b/shadowsocks-csharp/Controller/Service/PortForwarder.cs @@ -46,7 +46,7 @@ namespace Shadowsocks.Controller this._local = socket; try { - EndPoint remoteEP = SocketUtil.GetEndPoint("localhost", targetPort); + EndPoint remoteEP = SocketUtil.GetEndPoint("127.0.0.1", targetPort); // Connect to the remote endpoint. _remote = new WrappedSocket();