expose address and ports
delete nextmessage before emitting message to prevent recursion