Add ability to bind to a specific hostname

This PR adds the ability to specify a hostname to bind to.