Changed to allow application to listen on specific host & port.