Use InetAddress to determine host name instead of defaulting to localhost
Merge pull request #15 from pphatak/master

Use InetAddress to determine host name instead of defaulting to localhost