I'll ask you about PhpStorm REST Client


I am doing an API test using the Rest Client in Php Storm.


I am currently holding my ankle due to this error.

org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/] failed: Connection refused: connect  

How do I resolve this error? And why is this error happening?

If you have experienced this problem or have solved it

let me know how to fix it.


There is no server listening on port 8080 for the PHPStorm REST client to connect to.

You probably want to enable and configure PHPStorm's internal web server.