TCP Client Self-Connect (2013)

26 Bogdanp 4 8/11/2025, 12:33:09 AM sgros.blogspot.com ↗

Comments (4)

millipede · 25m ago
Intuitively it doesn't sound like it would work. The program doesn't call listen() or accept() on the socket.
Retr0id · 42m ago
Can confirm that it still works in 2025, and also via netcat.

I wonder if it's also theoretically possible for a pair of clients to connect to each other like this?

LeoPanthera · 25m ago
The tailscale client does this trick to force its way through NAT-to-NAT connections.

"How NAT traversal works" - https://tailscale.com/blog/how-nat-traversal-works > "The benefits of birthdays"

bmenrigh · 27m ago
Yeah a pair of clients can via “tcp simultaneous open” but you’ll need to arrange for each client to know about the source port of the other. So bypass the usual ephemeral port choice made by the OS. And it’s still highly sensitive to timing.