I must be doing something wrong as the instances of the app do not seem to see each other. I set up a separate windows called:
I added a UDPSocket with a Super of AutoDiscovery and added a Method of RecievedMessage to it and added code to let me know that a message is being received from the app on the other computer.
I also added code to the App.Open Event:
frmNetworkConnection.ADController.Bind( 9097 )
If frmNetworkConnection.ADController.LastErrorCode <> 0 Then
MsgBox("Error binding port.")
Which is similar to the code from the AutoDiscovery example.
I have a button which sends the message so I can check to make sure they see each other:
frmNetworkConnection.ADController.SendMessageToGroup(0 , "Testing, 123." )
But only the sending app can receive the message. I'm sure it's something so simple I am not doing correctly.
In the frmNetworkConnection I have a lists identical to the one in AutoDiscovery example so I can see for sure that messages are being sent and received.
The AutoDiscovery example works no problem with my setup which is a MacBook Pro and a Virtual Machine with Windows 10 in bridged mode so the Virtual Machine is on the same Network as the host machine.