Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
net: DialTCP produces "connection refused" error on Linux but not on Windows #38684
What version of Go are you using (
I guess Linux (at least in its default configuration) doesn't allow such an active/active TCP connection, at least on localhost. Perhaps it's configurable. It'd probably work between two separate hosts, though.
This isn't so much a Go problem as an OS/config difference.
Closing, as I don't see anything to do here.