Added ability to set a hostname/ip address and port number to use when creating proxies. Closes gh-7