Work on arbitrary ports.