dourangdz750379 2011-10-23 03:35
浏览 369
已采纳

在PHP服务器上更改默认的Mosquitto MQTT端口

I am running a MQTT server on PHP and using Android to connect to it. The problem I faced is that I am unable to get the default port 1883 opened for MQTT due to server restrictions. Only common ports (21, 80, 3306, 8080) are opened. Is there any 'hack' that will allow me to use these ports for my MQTT? I have tried ports 80, 3306 and 8080 but it doesn't work.

  • 写回答

1条回答 默认 最新

  • dowbwrr3590709 2011-10-24 09:49
    关注

    Well, typically the ports above 1000 are privileged and restricted anyway. What is happening when you adjust the broker settings to start on a different port? are those ports you list already opened by other applications?

    From the perspective of MQTT it will just be a case of setting the port number in the broker configuration and starting the broker. I can't see what else can help here?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?