Web services 移动数据上的Xamarin.IOS Web服务错误

Web services 移动数据上的Xamarin.IOS Web服务错误,web-services,xamarin.ios,socketexception,Web Services,Xamarin.ios,Socketexception,如果我使用域名是正常的,但我需要使用ip地址,而不是工作。在WIFI上,该应用程序也能正常工作。问题在于移动数据和ip地址 我正在IOS 10.3.1和T-Mobile中运行应用程序 以下是错误的堆栈跟踪: 实例{System.Net.WebException:错误:ConnectFailure(网络不可访问)--->System.Net.Sockets.SocketException:网络不可访问 在:0中的System.Net.Sockets.Socket.Connect(System.Ne

如果我使用域名是正常的,但我需要使用ip地址,而不是工作。在WIFI上,该应用程序也能正常工作。问题在于移动数据和ip地址

我正在IOS 10.3.1和T-Mobile中运行应用程序

以下是错误的堆栈跟踪:

实例{System.Net.WebException:错误:ConnectFailure(网络不可访问)--->System.Net.Sockets.SocketException:网络不可访问 在:0中的System.Net.Sockets.Socket.Connect(System.Net.EndPoint remoteEP)[0x00000]处 0中的System.Net.WebConnection.Connect(System.Net.HttpWebRequest请求)[0x00000]处 ---内部异常堆栈跟踪的结束--- 在System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)[0x00000]中:0 位于:0中的System.Net.HttpWebRequest.GetRequestStream()[0x00000]处
在System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(System.String方法_名称,System.Object[]参数)[0x00000]in:0}System.Net.WebException

中,您是否使用公共IP地址?尝试从应用程序外部访问地址,例如浏览器。应用程序外部工作正常。是的,IP地址是公共的。