Ensure the PORT is stored for pm proxied request

/to @sam-github @seanbrookes