문제

Can i achieve a real bidirectional communication between a (c++) device in the local network behind a NAT and a device (PC) in the internet (not behind a NAT) using websockets. The begin of communication should be triggered by the network device.

kind regards

도움이 되었습니까?

해결책

WebSockets will behave exactly like any other sockets in this regard. If the initiator is behind a NAT device and the recipient is not then it should work (subject to any special policy of the NAT device). If the target is behind a NAT it will not work without some sort of port forwarding setup.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top