tom: add support for ip/port

Currently, this tool only works if you run it on the server. I wish to run it remotely so added support for provision of ip/port.