Graphics.ConnectingClientsToManagerWithoutMulticast - lordmundi/wikidoctest GitHub Wiki
Connecting Clients to Manager Without Multicast
« DCOMM Notes | EDGE User’s Guide | DCOMM Settings »
Sometimes automatic multicast discovery of the manager from the clients is not possible - perhaps networking firewalls don't allow it for example. In that case, it is easier to just specify the IP address of the manager so that clients can skip multicast discovery and just connect directly.
Simple directions
-
Edit your "$USERDATA/user.cfg" and add DEFINES at the top to specify direct comm, the IP address of the manager, and the port. For example:
DCOMM_CONNECTION_CONFIG "${DOUG_HOME}/configs/direct_comm.cfg" SERVER_ADDRESS "127.0.0.1" TCP_PORT 8200
What's really going on
Two config files exist in $DOUG_HOME/configs: direct_comm.cfg and multicast_discovery.cfg. By default, EDGE will source the multicast_discovery.cfg in a POSTLOAD block. The user can switch this to direct comm by changing the define in their DEFINES block to point to the other file. By changing the define "DCOMM_CONNECTION_CONFIG", the user can adjust which file is sourced. By switching to direct_comm.cfg, the DCOMM plugin will be configured to immediately attempt connection to the address and port specified by the DEFINES "SERVER_ADDRESS" and "TCP_PORT".
You can see all of the default settings in the edge_settings.cfg file.