Refactored server host/port configuration.