Hi,
I'm trying to use the SSHNet library (Renci SSH) from codeplex on my Xamarin iOS app. The SSH auth and the tunneling is working fine on the simulator, but I can't make it work on the real devices.
Did someone used this library with Xamarin.iOS?
I already added the "Personal VPN" entlitement property (with I don't really know if its truly necessary). The device log says the shh auth works, but when I try to connect http://127.0.0.1:port/rest_off_the_url , I get a TimeOut.
Here is my code
But then, this get a TimeOutException
I'm trying to use the SSHNet library (Renci SSH) from codeplex on my Xamarin iOS app. The SSH auth and the tunneling is working fine on the simulator, but I can't make it work on the real devices.
Did someone used this library with Xamarin.iOS?
I already added the "Personal VPN" entlitement property (with I don't really know if its truly necessary). The device log says the shh auth works, but when I try to connect http://127.0.0.1:port/rest_off_the_url , I get a TimeOut.
Here is my code
SshClient p_sshClient;
ForwardedPortLocal p_forwardedPortLocal;
p_sshClient = new SshClient(VPN_ADDRESS, user, password);
p_sshClient.Connect();
p_forwardedPortLocal = new ForwardedPortLocal(LOCAL_HOST, localPort, connectionURL, port);
p_sshClient.AddForwardedPort(p_forwardedPortLocal);
p_forwardedPortLocal.Start();
This works fine apparently. I can even see the server logs success messages.But then, this get a TimeOutException
HttpWebRequest request = (HttpWebRequest) WebRequest.Create (localhost_url);
WebResponse response = request.GetResponse ();
Thanks!