This is our old Q&A Site. Please post any new questions and answers at

In our product for LDAP we use 16110 as port along with default 389. SO everytime I need to "decode as" option. Is there any way to automatically decode the packets in this port?

I see one option in Edit --> Preferences --> Protocol --> LDAP, here I think I can change the port number, but anywhere I can add the port like - 389,16110 ?

Please clarify

asked 12 Sep '12, 10:15

Santhosh%20Mohan's gravatar image

Santhosh Mohan
accept rate: 0%

edited 14 Sep '12, 19:42

cmaynard's gravatar image

cmaynard ♦♦

I think SERVICES file should do it, not? It's in your Wireshark folder.

(12 Sep '12, 11:34) hansangb

Hansang, I doubt the services file will help. AFAIK it is used to do service name resolution, not for telling the dissectors on which port something is running at. But I might be wrong :-)

(12 Sep '12, 12:13) Jasper ♦♦

With version 1.8.x you can now save "Decode As..." definitions so that you don't have to re-enter them every time you start Wireshark.

Once you added one or more "Decode As..." definitions, go to "Analyze -> User Defined Decodes..." and choose "Save". This will save these "Decode As..." definitions in your current configuration profile. So you can even have a different set of custom port mappings for different setups by defining multiple configuration profiles.

permanent link

answered 14 Sep '12, 23:52

SYN-bit's gravatar image

SYN-bit ♦♦
accept rate: 20%

I don't think you can add more than one port number here (which is different from what you can do at the HTTP dissector preferences). At least I have found no way to enter multiple ports.

You might want to open a feature request at the bug tracker at, but it will probably take some time for someone to be willing to take care of it.

The only other thing that comes to mind (and it is kinda thinking outside the box) is to use a packet anonymization tool like bittwiste or tcprewrite to change the port numbers in the trace file. It's an extra step, but you could automate it with a script.

permanent link

answered 12 Sep '12, 12:17

Jasper's gravatar image

Jasper ♦♦
accept rate: 18%

Oh, I got you. You're right, of course. Two different things.

(12 Sep '12, 13:40) hansangb

Thanks a lot Jasper and hansangb. I will open a feature request in the bug tracker.

(12 Sep '12, 21:54) Santhosh Mohan

You should be able to accomplish this with Lua. I believe the very first example provided on the Lua example page is essentially what you'd need to do. Probably even easier/simpler/better is the example given under DissectorTable in the Lua API documentation.

permanent link

answered 14 Sep '12, 19:34

cmaynard's gravatar image

cmaynard ♦♦
accept rate: 20%

edited 14 Sep '12, 19:41

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 12 Sep '12, 10:15

question was seen: 14,346 times

last updated: 14 Sep '12, 23:52

p​o​w​e​r​e​d by O​S​Q​A