How to fix "a connection attempt failed because the connected party did not properly respond after a period of time ..." error?
I found out what was the problem. I was listening on 10.0.0.1 and trying to reach my external IP (second instance of my program) which is impossible on a computer with one connection to the internet.