allow specification of to/from port and hostname