First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

use multiple ports for a protocol (I need multiple ports for mqtt)

My software connects to multiple brokers which use different ports (1883 and 1884)

I want wireshark to show internals of packets for both. But I can set only a single port for the protocol. I need to set more than one port to be recognised as mqtt. How can I do that?

roointan's avatar
1
roointan
asked 2019-01-21 16:28:57 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Currently, the MQTT dissector does not support a range of ports, only a single port for dissection. For now, you can use the "Decode As" feature to force packets on port 1884 to be decoded as MQTT packets. To do that, either:

  • Right-click on a packet with port 1884 and choose, "Decode As...", or
  • From the main toolbar menu, choose *Analyze -> Decode As...".

Add/replace a new entry for port 1884 to be decoded as MQTT.

If you'd like the MQTT dissector to support a range of ports, you could try opening a Wireshark enhancement bug report asking for this to be implemented.

cmaynard's avatar
11.1k
cmaynard
answered 2019-01-21 23:14:13 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer