conditionalize the web_port usage