How to enable REST API port 8080 for http


I need uses REST API but can’t enable port 8080 to use my localhost




Thanks in advance.

What is the EMQX version you are using? You can check if the port is occupied.

I Used 5.0.16 version.

The port 8080 is free.


In EMQX 5.0, we only opened port 18083 for HTTP API. Of course, you can configure more listeners by yourself. For details, please refer to HTTP API doc.

Thank yuo for your response.

Please, If i have a topic charge/mouse
And i publish for example 45 for this topic…

How can read this value from other client with REST API.

Thank you.

We don’t support using HTTP API to consume MQTT messages, maybe you can consider using MQTT Client with WebSocket.