Fixing url port to make it available with and without proxy