Instead of taking an int for the port, take a short. This matches better with the networkmanager EndPoint struct.
Also upgrade the cashier app with logging, ctrl-c catching and debug + version command line arguments. Last, this checks the server version and exits if the Hub version is too old.