internal HostUrl(int port) { this.setHostUrl("http://" + MachinIdentification.getIpAddress() + "/"); //For sending requests to the current machine this.setPort(port != -1 ? port : MachinIdentification.getPort()); //Default port for all hostess is 8080. this.setHostId(); }