added fix that the wrong port was added to Socket endpoint if you use local proxy
Merge pull request #3 from Mischazz/master

Fixes #2