Issue 550 in connectbot: Local port forwarding doesn't work

207 views
Skip to first unread message

conne...@googlecode.com

unread,
Jan 13, 2012, 7:24:22 PM1/13/12
to connectbo...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 550 by accov...@gmail.com: Local port forwarding doesn't work
http://code.google.com/p/connectbot/issues/detail?id=550

What steps will reproduce the problem?
1. Start a Local port forward on any port (using Menu -> Port Forwards ->
Menu -> Add port forward, or Hold-menu -> Edit port forwards -> Menu -> Add
port forward)
2. Port forward shows in list after you fill out the dialog, only if you
don't accept the default (blank).
3. Port forwards are of a strikethrough font, they don't work (`-L
3306:127.0.0.1:3306' doesn't work for example)

What is the expected output? What do you see instead?
The port forward should work (it did at one time, but idk why it doesn't
now). The port forward doesn't accept connections.

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
ConnectBot 1.7.1 (v1.7.1 2010.10.08)

What type of system are you trying to connect to?
Xubuntu

If you are able to connect, what is the output of "echo $TERM", "uname -a",
and any other relevant information on the host?
TERM=screen
Linux xubuntu 2.6.38-13-generic #52-Ubuntu SMP i686 i386 GNU/Linux

Please provide any additional information below.
adb logcat outputs (go-away-m is my phone's hostname, could it be because I
have LinuxInstaller on my phone?):

E/ConnectBot.SSH(11780): Could not create local port forward
E/ConnectBot.SSH(11780): java.net.UnknownHostException: go-away-m
E/ConnectBot.SSH(11780): at
java.net.InetAddress.lookupHostByName(InetAddress.java:512)
E/ConnectBot.SSH(11780): at
java.net.InetAddress.getLocalHost(InetAddress.java:462)
E/ConnectBot.SSH(11780): at
org.connectbot.transport.SSH.enablePortForward(SSH.java:608)
E/ConnectBot.SSH(11780): at
org.connectbot.service.TerminalBridge.enablePortForward(TerminalBridge.java:869)
E/ConnectBot.SSH(11780): at
org.connectbot.PortForwardListActivity$2.onItemClick(PortForwardListActivity.java:157)
E/ConnectBot.SSH(11780): at
android.widget.AdapterView.performItemClick(AdapterView.java:284)
E/ConnectBot.SSH(11780): at
android.widget.ListView.performItemClick(ListView.java:3561)
E/ConnectBot.SSH(11780): at
android.widget.AbsListView$PerformClick.run(AbsListView.java:1831)
E/ConnectBot.SSH(11780): at
android.os.Handler.handleCallback(Handler.java:587)
E/ConnectBot.SSH(11780): at
android.os.Handler.dispatchMessage(Handler.java:92)
E/ConnectBot.SSH(11780): at android.os.Looper.loop(Looper.java:150)
E/ConnectBot.SSH(11780): at
android.app.ActivityThread.main(ActivityThread.java:4293)
E/ConnectBot.SSH(11780): at
java.lang.reflect.Method.invokeNative(Native Method)
E/ConnectBot.SSH(11780): at
java.lang.reflect.Method.invoke(Method.java:507)
E/ConnectBot.SSH(11780): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
E/ConnectBot.SSH(11780): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
E/ConnectBot.SSH(11780): at dalvik.system.NativeStart.main(Native
Method)

conne...@googlecode.com

unread,
Jan 14, 2012, 9:24:38 AM1/14/12
to connectbo...@googlegroups.com

Comment #1 on issue 550 by Adam.H.O...@gmail.com: Local port forwarding

Just ran across this issue on my phone and determined how to solve it. The
issue is that your phone calm= convert its hostname to an IP address. I
added an entry into my hosts file (/system/etc/hosts) pointing at 127.0.0.1
and everything works fine now. I am not sure why Connectbot needs to look
this up, but that's how I got it to work.

conne...@googlecode.com

unread,
Jan 14, 2012, 6:16:02 PM1/14/12
to connectbo...@googlegroups.com

Comment #2 on issue 550 by accov...@gmail.com: Local port forwarding

To whoever (I'm new to this, so I don't know how to mark it as Fixed),
Adam's fix worked for me.

conne...@googlecode.com

unread,
Dec 4, 2013, 7:21:17 AM12/4/13
to connectbo...@googlegroups.com

Comment #3 on issue 550 by satyaka...@gmail.com: Local port forwarding
For me it is still not working. I changed dev host setting so that it takes
127.0.0.1:8080 instead of Virtual host after reading the above. I could not
change hosts file on Android tablet so I changed virtual host setting to
read into port :8080 but still no use.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

conne...@googlecode.com

unread,
Jan 26, 2014, 12:37:20 AM1/26/14
to connectbo...@googlegroups.com

Comment #4 on issue 550 by mailserv...@gmail.com: Local port forwarding
Adam's fix also worked for me! Make sure you have the entry "127.0.0.1
localhost" in your /etc/hosts
Reply all
Reply to author
Forward
0 new messages