added fix that the wrong port was added to Socket endpoint if you use local proxy