Auto-discovery on same machine

Is this possible?

I have two applications. One is a server and could be running on any machine in the network.
The second is a client. It could be running on any machine on the network even the same one as the server.

I’m using auto-discovery so they can find each other.
It seems that I cannot do this when on the same machine. The second one connecting just seems to fail and no communication happens between them.

I’m sure there is a way around this.
Suggestions?

I’ve long ago stopped to rely on the auto discovery class, because of always the same bad experience.

Another approach would be to use an IPCSocket between your two apps. Since this wouldn’t work between different computers, you’d have to keep the existing method as well.

(this answer is a placeholder, in case you don’t receive an answer for your exact question).

Make sure you set SendToSelf to True

The AutoDiscovery needs a port exclusively for the BIND. Therefore I think that the AutoDiscovery cannot work on the same machine.

@Greg_O had not come across this before but now interested. Took the exampke project that came with Xojo built, ensured this property set to true, ran 2 instances on same machine. Resulted in error. Unable to bind to port.