Added code to check if web port is disabled.