channel 3: open failed: connect failed: Connection refused
<p>I am trying to debug a remote application. I have initiated a SOCKS proxy on server:
ssh -D 9999 hostname</p>

<p>I then try to connect to it from my eclipse debug setting where hostname is the same and port=9999.</p>

<p>However I get error: 
<code>channel 3: open failed: connect failed: Connection refused</code></p>

<p>I have also update eclipse network connections to allow SOCKS proxy. The configuration works on a different host name in the same network.</p>

<p>I am not able to interpret this error message. Can someone please assist where I am going wrong?
 I looked at this: <a href="https://stackoverflow.com/questions/18705453/ssh-l-connection-successful-but-localhost-port-forwarding-not-working-channel">SSH -L connection successful, but localhost port forwarding not working &quot;channel 3: open failed: connect failed: Connection refused&quot;</a> but did find it useful in my case.</p>

<p>I have initiated my process on remote server in debug mode listening a specific port 4111
I confirmed that debug port is open by <code>netstat -a</code> command</p>

<p>Thank-you</p>