His other post has the program file posted, which is why I left it up. There is no initialization of any socket, so using port 20000 will go to socket 0 which is using UDP protocol. Socket 1 defaults to port 20256 and TCP protocol (and server), which is what should be used for PC-PLC communications. The PC (VisiLogic) should be set to client, as you correctly point out.