0

我在 Visual C++ 中使用 Boost asio。我正在尝试连接到在端口 1222 上侦听 TCP 的静态 IP。不幸的是,我只能连接到 LAN,而无法从另一个 LAN 连接到 TCP 侦听 PC(203.143...

它与 EC2 服务器完美连接。是不是和防火墙有关。但是当我运行应用程序时,它会要求用户允许特定端口的防火墙。我可以发布我的代码,但我想这与代码无关。

4

1 回答 1

1

Usually a firewall on the server side (the PC you are trying to connect to) have to be configured to allow incoming connections. Firewall on your side should be OK, it usually allows any type of outgoing connections. I don't know what you meant by "the app ask for the user to allow firewall for the specific port" (clarify).

于 2012-07-17T08:48:27.960 回答