Send data to the correct port of EPNs
Split the binary to different executables for the directory, FLPs and EPNs
Optimization: Cache determine_ip, the local IP should only be calculated once
For FLPs and EPNs, provide the IP address of the directory via a command line switch