Art-of-WiFi / UniFi-API-browser

Tool to browse data exposed by Ubiquiti's UniFi Controller API
MIT License
1.1k stars 150 forks source link

curl error: Failed to connect to <hostname> port 8443: Connection timed out #4

Closed malle-pietje closed 6 years ago

malle-pietje commented 8 years ago

Whenever you observe an error like this in your web server's error log, it is often an indication of a connectivity issue between the server running the API Browser tool and your controller.

curl error: Failed to connect to <hostname> port 8443: Connection timed out
PHP Warning: Invalid argument supplied for foreach() in path/to/api_browser_tool/index.php on line 415

Next steps:

How to actually check this depends on the firewall that is controlling the connections in/out but running this command from the API Browser tool server's command line, will probably provide some useful errors:

wget https://<hostname or ip>:8443

This error typically occurs in shared hosting environments where commercial web hosting providers often apply strict firewall rules by default.