Fix NameError due to not defined host, port vars
Merge pull request #13 from nopper/master

Fix NameError due to not defined host, port vars