Ask Your Question
0

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

asked 2019-01-21 16:28:57 +0000

roointan gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-01-21 23:14:13 +0000

cmaynard gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-01-21 16:28:57 +0000

Seen: 1,633 times

Last updated: Jan 21 '19