question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MQTT Node doesn't allow for port to be edited.

See original GitHub issue

Hi,

The MQTT Input node does not seem to allow you to edit the server port but instead has it locked to 1883.

Note: We were participating in a hackathon over the weekend where several different groups were trying to use MQTT input nodes and all ran into the same issue with their own installations.

What are the steps to reproduce?

Add a MQTT Input node to your flow graph. Double click on node to edit. Click pencil icon to edit server

What happens?

The Port field is not editable.

What do you expect to happen?

The Port field should be editable for servers that don’t use the default port of 1883.

Please tell us about your environment:

  • Node-RED version: 1.0.3: Maintenance Release
  • Node.js version: v13.6.0
  • npm version: 6.13.4
  • Platform/OS: macOS Catalina
  • Browser: Chrome

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
knollearycommented, Feb 20, 2020

Ah yes, that’s the expected behaviour. If you specify a fully qualified URL then you don’t set a port separately - otherwise we have to deal with deciding if the user wants us to use the port from the URL or from the input.

0reactions
Mrc0113commented, Feb 20, 2020

Thanks for the confirmation. It makes sense now that we’ve had this conversation but it might be a good idea to add that to the “Node Help” section as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring the Node-Red MQTT Publish and Subscribe Nodes
To connect to an MQTT broker or server you need to know the Broker IP address or name, and the port that it...
Read more >
Mosquitto does not allow connection via External IP Windows 10
conf command, I get an error that says "Error: Only one usage of each socket address (protocol/network address/port) is normally permitted." The ...
Read more >
Using the Node.js MQTT Client -Starting Guide
Tutorial showing how to use the Node.js MQTT Client. Stating with the connection and including connection errors.
Read more >
Cannot get Mosquitto to Allow Connection from Outside Local ...
1 Answer 1 · Step 1: Install Mosquitto Software · Step 2: Open Port 1883 and start firewall · Step 3: Verify Mosquitto...
Read more >
Mosquitto allow local network access - Configuration
You would need to change the “expose” statement to a “ports” statement, if Home Assistant and Mosquitto are not on the same network....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found