FTcpSocketBuilder can only create socket to localhost

221191-233.png

I used this code based on the example by rama to create socket, but it can only create socket to localhost.
If I use the 127.0.0.1 or 10.1.3.207(my own LAN IP) the Log will show Socket Listener Created, while when I try another LAN IP 10.1.3.166 the ListenSocket will be a nullptr. Is there a solution to this problem?

Are you connecting your socket to a remote endpoint? BoundToEndpoint() sets the local endpoint your socket is bound to.

BoundToEndpoint specifies the IP and port number that the socket is bound to on your local computer. For listening sockets this is also the IP/port that the socket will listen on for incoming connection requests. Valid IP addresses include 0.0.0.0 (any adapter), 127.0.0.1 (localhost) and the IP address of any locally installed network adapter.

To connect the socket to a remote endpoint in another process or on another computer, use the ListenSocket->Connect() method.