Guest AllTimeProgramming Posted May 10, 2011 Report Posted May 10, 2011 Hello, I am a newbie in Android and Tunneldroid and your site. I found Tunneldroid helpful and implemented in my application. But am facing the following problem. Can anyone help me with this : What is MGMT_HOST and MGMT_PORT in OpenVPNManagerClient and what is it meant for ? I tried 127.0.0.1 and remote host url and 7171 and 443 but in all ways while creating new Socket in connectToManger(), I get exception "Connection refused". And it just continues even if the application is closed. It stops when the emulator is closed, till thne I keep getting this error in logcat : Code that throw exception : while(!success) { Log.i(TAG, "Connecting to Manager..."); mgrSocket = new Socket(MGMT_HOST, MGMT_PORT); ..... ..... } [/codebox] And the logcat, that displays the error continously ans it executed the above loop infinetly, even after closing the application : [codebox] 05-10 12:52:42.655: INFO/OpenVPNManagerClient(358): Connecting to Manager... 05-10 12:52:42.655: ERROR/OpenVPNManagerClient(358): IO Error Connect :/127.0.0.1:7171 - Connection refused I am really confused with this part and have a query - Process of openvpn will be running on the device only, and the ovpn file and try to connect to remote vpn through openvpn. I believ ethis Socket connection is used to retrieve the openvpn logs (tha we can see in Process normally). Is my above understanding correct or not ! And finally, wy do I get this error, how to handle it ? Please help me. Any help is highly appreciated. Thanks
Guest glossywhite Posted May 11, 2011 Report Posted May 11, 2011 Hello, I am a newbie in Android and Tunneldroid and your site. I found Tunneldroid helpful and implemented in my application. But am facing the following problem. Can anyone help me with this : What is MGMT_HOST and MGMT_PORT in OpenVPNManagerClient and what is it meant for ? I tried 127.0.0.1 and remote host url and 7171 and 443 but in all ways while creating new Socket in connectToManger(), I get exception "Connection refused". And it just continues even if the application is closed. It stops when the emulator is closed, till thne I keep getting this error in logcat : Code that throw exception : while(!success) { Log.i(TAG, "Connecting to Manager..."); mgrSocket = new Socket(MGMT_HOST, MGMT_PORT); ..... ..... } [/codebox] And the logcat, that displays the error continously ans it executed the above loop infinetly, even after closing the application : [codebox] 05-10 12:52:42.655: INFO/OpenVPNManagerClient(358): Connecting to Manager... 05-10 12:52:42.655: ERROR/OpenVPNManagerClient(358): IO Error Connect :/127.0.0.1:7171 - Connection refused I am really confused with this part and have a query - Process of openvpn will be running on the device only, and the ovpn file and try to connect to remote vpn through openvpn. I believ ethis Socket connection is used to retrieve the openvpn logs (tha we can see in Process normally). Is my above understanding correct or not ! And finally, wy do I get this error, how to handle it ? Please help me. Any help is highly appreciated. Thanks Hi dude. Don't expect an answer on this forum, as I posted a programming question over a week ago, and yet noone has replied. Bizarrely, modaco has a WinMo programming section, but not an android one. Considering Android is massive, and this site is (supposedly) full of people who can write apps, it seems a little odd to me. I'd help you if I could, but I am a newcomer too. I wish you all the best with it :unsure:
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now