Connection Error in Xamarin Forms
Closed this issue · 5 comments
Hi
I am using ejabberd server and connecting through the static ip of the server , It is working fine in windows and console apps but on Xamarin forms I am not able to even connect both in android and iOS.
This is error on Android.
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:310
at SharpXMPP.XmppTcpConnection.InitTlsIfSupported (SharpXMPP.XMPP.Stream.Elements.Features features) [0x000bf] in <4f194704292d40ad8605a7be061cbf71>:0
at SharpXMPP.XmppTcpConnection.ConnectAsync (System.Threading.CancellationToken token) [0x00160] in <4f194704292d40ad8605a7be061cbf71>:0
at LumiDocTalk.Views.Dashboard.OnAppearing () [0x00274] in /Volumes/MySSD/Projects/LumiMobile/LumiDocTalk/LumiDocTalk/LumiDocTalk/Views/Dashboard.xaml.cs:58
I'm sorry, but what's the error? Where's the error message?
"Connection refused" means connection was blocked on server side. Make sure you are connecting to correct ip and port and it is not blocked by firewall
This error means you have configured tls on the server but with self-signed certificate. You can either install this certificate to your device as trusted or fully disable tls in server configuration.
Alternatively, you can comment out tls initialisation in this library but this can break connectivity to correctly configured servers.