#2177 Adding support for bound host and port for the SOCKS5 response

Implementation for #2177. Changes are fully backward compatible.