Don't append a port number if the application if the app doesn't allow
direct connect.
Append the port to the relative url for dev apps with direct connect
disabled.