Re: nc fails to connect the first time and then succeeds

2020-04-21 Thread Thomas Wolff
Please don't "top-post". Am 21.04.2020 um 17:14 schrieb Jack Adrian Zappa via Cygwin: Nm. I figured it out. Seems if you don't specify what type of listener, it'll default to IP4. When you create a sender, it'll try first using IP6 and then fall back to IP4. It's that first connection that i

Re: nc fails to connect the first time and then succeeds

2020-04-21 Thread Jack Adrian Zappa via Cygwin
Nm. I figured it out. Seems if you don't specify what type of listener, it'll default to IP4. When you create a sender, it'll try first using IP6 and then fall back to IP4. It's that first connection that is causing the failure. If you specify the listener to use IP6, then it works fine. Than

nc fails to connect the first time and then succeeds

2020-04-21 Thread Jack Adrian Zappa via Cygwin
I was trying to do some testing of a ssh port forwarding issue I was having, by trying to reduce the problem into something simpler. So I reached for netcat (nc). Turns out that when trying to connect a listener to a sender directly, it will fail first and then succeed. Example: In terminal 1 we