Failed to connect to /localhost:8080

The JS (NPM) HTTP Server doesn’t execute PHP scripts. You’d have to setup the infamous WAMP stack so that the PHP script is executed when you call it via URL.

Setting Up Apache/MySQL/PHP (AMP) on Linux (LAMP), Windows (WAMP) and Mac OS (MAMP)

On a side note, you can also use ADB Reverse to forward a port from your device to your laptop.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top