Add arg parsing, querying local ip address automatically and use message helpers to ping and query