07-25-2025, 11:23 AM
Hi,
I've only used the Client/Server with both client and server being Small Basic programs, so not fully sure.
If the server is using different ports to send and receive data, then I think you may need 2 separate SB programs to connect to each.
I guess I would start by tring to send a message to 192.168.2.20:15731 in a simple SB program and check if this gets through. If this works it is a good start.
To receive messages use the LDClient.ServerMessage event and property LDClient.LastServerMessage, but I think this will have to be a separate SB program connected to 192.168.2.20:15730.
If these work independently, then I would think that one of the 2 SB programs would be the master and the other would be a slave that is controlled by the master, perhaps through a common file.
I've only used the Client/Server with both client and server being Small Basic programs, so not fully sure.
If the server is using different ports to send and receive data, then I think you may need 2 separate SB programs to connect to each.
I guess I would start by tring to send a message to 192.168.2.20:15731 in a simple SB program and check if this gets through. If this works it is a good start.
To receive messages use the LDClient.ServerMessage event and property LDClient.LastServerMessage, but I think this will have to be a separate SB program connected to 192.168.2.20:15730.
If these work independently, then I would think that one of the 2 SB programs would be the master and the other would be a slave that is controlled by the master, perhaps through a common file.