Fix proxying multiple ports, and some concurrency stuff