getsockname() only returned local ip address
Merge pull request #505 from IZEDx/patch-1

getsockname() only returned local ip address