Comms: Provide callback for OnConnect and resolve local addresses on loopback.