How to fix “a connection attempt failed because the connected party did not properly respond after a period of time …” error?

后端 未结 2 1749
猫巷女王i
猫巷女王i 2021-01-12 05:47

I\'m making a game in C# and I want to display the progress (movements and so on) of opponent. So I send events in game via TCP protocol to opponent.

I\'ve already t

相关标签:
2条回答
  • 2021-01-12 06:19

    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.

    0 讨论(0)
  • 2021-01-12 06:37

    I also faced the same problem in AWS VPN.

    I changed the proxy.company.com (external ip) to 10.0.0.5.

    And it works now.

    0 讨论(0)
提交回复
热议问题