none
How to show TCP/UDP port number instead of "Protocol Name" RRS feed

  • Question

  • Hi, I'd like to see the exact TCP/UDP port number of every item (as long as it is TCP or UDP) instead of "Protocol Name" in the list. How shall I do? Thanks!



    • Edited by 高麻雀 Wednesday, September 5, 2012 10:23 AM
    Wednesday, September 5, 2012 9:19 AM

Answers

  • Hi,

    If you look at the Columns drop-down (as you can see in the top-right of your screenshot), there's a "Choose Columns..." option.

    Just add the "Source Port" and "Destination Port" columns to your layout and you'll be able to see this information for both TCP and UDP traffic.  You can also remove the Protocol Name column if you don't want it from here as well.  By default these changes should persist to your next session as well.

    Thanks,


    Michael Hawker | Program Manager | Network Monitor

    Friday, September 7, 2012 8:34 PM
    Moderator

All replies

  • Hi,

    If you look at the Columns drop-down (as you can see in the top-right of your screenshot), there's a "Choose Columns..." option.

    Just add the "Source Port" and "Destination Port" columns to your layout and you'll be able to see this information for both TCP and UDP traffic.  You can also remove the Protocol Name column if you don't want it from here as well.  By default these changes should persist to your next session as well.

    Thanks,


    Michael Hawker | Program Manager | Network Monitor

    Friday, September 7, 2012 8:34 PM
    Moderator
  • Thank you!

    BTW, Is there a way to hide the hexadecimal port number? I just want to see the decimal port number.

    • Edited by 高麻雀 Monday, September 10, 2012 2:31 AM
    Monday, September 10, 2012 2:27 AM
  • By default we show both values.  But you could modify the NPL code to format a special property for TCP port.  For instance, the example below adds a property TCPSorucePort in TCP.NPL that you can add as a column.  You could add similar properties for Destination and UDP if you want.

    {
     [Pair = Port, Property.SourcePort, Global.TcpFrameCount = Global.TcpFrameCount + 1]
     [TCPSourcePort = FormatString("%d", this)]
     UINT16 SrcPort = PortNameTable(this);

    Tips for making changes to NPL are listed in this faq: http://social.technet.microsoft.com/wiki/contents/articles/network-monitor-3-frequently-asked-questions.aspx#HowDoIChangeOrAddAProtocolParser

    Thanks,

    Paul

    Monday, September 10, 2012 6:04 PM
  • Thank everyone!
    Tuesday, September 11, 2012 5:20 AM