'Connecting Android Studio emulator to host machine SSH server
I am developing a SSH app on Android using Android Studio and Java. The SSH code I am using is from the library JSch.
Right now I am having a issue connecting to my host SSH server. I can connect to it from other virtual machines and computers but my emulator is not able to. I am trying to use the ip 10.0.2.2 to connect to localhost but I continue to get failed to connect to /`0.1.1 (port 22) from /:: (port 58062): connect failed: ECONNREFUSED (Connection refused).
I know the Windows host SSH server is working. If I use ADB to get into the emulator I can ping 10.0.2.2 without issue. I feel like it is some sort of limitation inside the virtual network that the emulator is setup in however I am not sure. Does anyone know of any ways to make my Android SSH connect to my host windows SSH server?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
