«

»

May 10

PortQueryUI Config.xml File for Lync

**Updated 2016-10-07**

At work we often use the Port Querycommand to test connectivity to services running on servers. We have a bunch of firewalls scattered all over the place and most of the time issues with Lync are due to firewall updates not having been made. The advantage to PortQry is that it can probe for UDP ports as opposed to just TCP ports that the built-in Windows Telnet client can test.

I don’t have time to memorize the command line switches for every command I run. Fortunately, there is also a GUI version of PortQry called PortQueryUI. (Note that Microsoft documentation refers to this as PortQryUI but the name of the executable is PortQueryUI. For readability purposes, I will use the latter.) Aside from not having to memorize any command line parameters, PortQueryUI let’s you easily run standard tests by selecting them from a drop down list.PortQueryUI

 

The entries in the list are defined by an XML file named config.xml. If you open this file you will see the service lists followed by the relevant ports to query. For example, this is the entry for SQL Service:

<Service Name=”SQL Service”>

<Port Name=”ms-sql-s service” Protocol=”UDP” Value=”1434″/>

<Port Name=”ms-sql-s service” Protocol=”TCP” Value=”1433″/>

</Service>

It’s easy enough to figure out how to add your own entries. Simply create a new Service Name entry and under that define the ports you want to query. So I went ahead and created a bunch of these Service Names for all manner of Lync communication – 22 in total. I based my work off the very useful Windows Phone app Lync Protocol&Ports.

Some things to note:

  • Not all ports will be open, even if they are the correct ports. This is primarily true of the Audio port ranges (50,000-59,999 TCP/UDP). This does not mean you have a problem.
    • In order to minimize perceived errors, these ranges are the last ones in a given batch to run.
  • For the Office 365 tests, you will need to figure out to which server you are connected. You can do this by looking at the Configuration Information found via the icon in the notification area of Windows.
  • The original config.xml names have been updated from “Lync” to “Skype for Business” but the ports remain the same.

Click here to download the config.xml and then just copy it over the config.xml that comes with PortQueryUI.

Most likely I missed some ports and some options. Feel free to leave a comment and I’ll update the file with the corrections, additions, and other updates..

6 comments

19 pings

Skip to comment form

  1. Pat Richard

    Nice. Might need to add this to my Set-Cs2013Features.ps1 script at http://www.ehloworld.com/1697

  2. Pat Richard

    Nice. Might need to add this to my Set-Cs2013Features.ps1 script at http://www.ehloworld.com/1697

  3. Shawn Harry (@shawnharry)

    Awesome job Flinch. Its been a while since iv used PortQry, its just become sexy again 🙂

  4. Shawn Harry (@shawnharry)

    Awesome job Flinch. Its been a while since iv used PortQry, its just become sexy again 🙂

  5. Pat Richard (@patrichard)

    I released a new version of my script, which includes an automated installation of this. Nice work!

  6. René

    Nice job Flinch, and thank you for sharing!

  1. Lync 2013 Downloads « msunified.net

    […] Microsoft Network Monitor 3.4 PortQryUI – User Interface for Port Scanner [added, 11.05.13] Download Lync Config Fiddler – Web debug tool Lync 2013 Centralised Logging UI [new, […]

  2. Lync 2013 Downloads « msunified.net

    […] Microsoft Network Monitor 3.4 PortQryUI – User Interface for Port Scanner [added, 11.05.13] Download Lync Config Fiddler – Web debug tool Lync 2013 Centralised Logging UI [new, […]

  3. Set-CsLync2013Prereqs.ps1 - install prereqs and tools for Lync 2013

    […] 17. Custom PortQryUI […]

  4. Set-CsLync2013Prereqs.ps1 - install prereqs and tools for Lync 2013

    […] 17. Custom PortQryUI […]

  5. How to automate testing of ports in the Lync 2013 environment. | digitalbamboo's Blog

    […] report, other then just replace the existing config.xml file with the Lync file, or get it from the flinchbot site. Below show some screen shots of what the tool […]

  6. How to automate testing of ports in the Lync 2013 environment. | digitalbamboo's Blog

    […] report, other then just replace the existing config.xml file with the Lync file, or get it from the flinchbot site. Below show some screen shots of what the tool […]

  7. Learn how to troubleshoot Lync | The Lync Dude

    […] Microsoft PortQry […]

  8. Learn how to troubleshoot Lync | The Lync Dude

    […] Microsoft PortQry […]

  9. SCOM Error: Failed to Replicate to some of the machines in the topology | LyncMe Technical Blog

    […] The first simple test is to use PortQryUI to ensure the port is open between to Central Management Database. Flinchbot Blog Post has everything you need to be able to test this, head over to https://flinchbot.wordpress.com/2013/05/10/portqueryui-config-xml-file-for-lync/ […]

  10. SCOM Error: Failed to Replicate to some of the machines in the topology | LyncMe Technical Blog

    […] The first simple test is to use PortQryUI to ensure the port is open between to Central Management Database. Flinchbot Blog Post has everything you need to be able to test this, head over to https://flinchbot.wordpress.com/2013/05/10/portqueryui-config-xml-file-for-lync/ […]

  11. Troubleshooting no Skype for Business “Ferramentas” | MSBSB| A comunidade microsoft em Brasília

    […] Port Query: O Skype/Lync usa várias portas UDP e TCP, com Port Query você consegue verificar a conexão tanto de portas UDP quanto TCP. Segue o link para download: http://www.microsoft.com/en-us/download/details.aspx?id=24009 Segue o link do arquivo de configuração especifica para Lync/Skype. http://flinchbot.com/2013/05/10/portqueryui-config-xml-file-for-lync/ […]

  12. Comment debugger mes problèmes de connectivité pour Skype for Business ? | MQ - Unified Communication - MS

    […] Cependant, à ce stade, il ne permet d’appréhender le scénario Skype for Business. Pour cela, il vous faudra de du fichier de config proposer par le blog http://flinchbot.com/ , le fichier étant disponible sur ce poste http://flinchbot.com/2013/05/10/portqueryui-config-xml-file-for-lync/ […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

%d bloggers like this: