cURL can connect to localhost but browser cannot

Solution 1:

Most Browsers restrict 10080 for security reasons on localhost

Solution

  • Change the Port.

References

Google Chrome blocks port 10080 to stop Nat slip streaming attacks
Chrome Platform

Additonal Informations:

Currently, Google Chrome is blocking also FTP, HTTP, and HTTPS access on ports 69, 137, 161, 554, 1719, 1720, 1723, 5060, 5061, and 6566.