I can't debug your C++ program. But I made this demo that works on a local computer (127.0.0.1).
EchoServerDemo.fsm
echo_server.py
The python script makes a simple socket echo server. If you have python installed, you can run the file from a command prompt like so:
cd path/to/folder
python -m echo_server.py
If you run that file, the server just sends and receives in a loop. Once the server is running, you can run the model and see that the model is sending and receiving via the socket. For me, this all worked fine, so I don't think it's an issue with FlexSim's socket code.
It looks like you're trying to connect to a different computer. Sometimes firewalls or other network issues can prevent sockets.
Note: I tested this with Python 3.11.
.
Jordan Johnson
Principal Software Engineer
>