tom: add support for ip/port