Microsoft Office Tutorials and References
In Depth Information
(the Standalone installation just assigned a port for you). SharePoint generates the port
number from a range between 1024 and 65535. Often ports below 1023 are being used by
the server (or you can’t be sure which are available), so the higher the port number, the
more likely it’s not being used.
Let’s say you have an appropriate port number that might be easier to remember than the random
one SharePoint chooses for you. Before you assign an alternate port number for your new Central
Administration site, you may want to be absolutely certain that your server is not using that port
for anything.
The quick and easy way to confirm that is to use an old but still useful tool—PortQuery. An older
version, portqry.exe, used to be available on the Windows Server CD in the Support folder’s file. However, if you have Internet access, just download the newer version, portqryv2
.exe, which is available from Microsoft. This command-line tool is used to query the ports of a
server to see whether a port is being filtered (by a firewall usually), has a service listening to it (and
therefore not available for assignment to anything else), or has nothing listening to it (and therefore
is available for you to use).
PortQueryv2 is a tool primarily meant to troubleshoot services such as Active Directory and Exchange.
However, in this case we can use it to see if the port we want to use for Central Administration is
being used by some other service. To do this, go to the folder in Windows Explorer where you’ve
installed portqryv2 (it usually extracts to the local drive’s portqryv2 folder), Shift+right-click in
an empty space in the folder window, and select Open Command Window Here from the pop-up
menu. This will open a command prompt already in that directory—no navigating needed. Then
run the portqry command with the following switches:
portqry -n IPaddressofserver -p both -e yourport
This means we are running the portqryv2 executable, with the - n, or name, switch (this is not
optional and can use the machine name, FQDN, or IP address; otherwise, it defaults to,
- p, or protocol, switch (I like to check for both TCP and UDP just in case), and the - e, or endpoint,
switch, which is used to specify the port I’m checking.
In my case, the IP address of my SharePoint server is, and the port I am going to check
is 9876. As you can see, there are no services listening on port 9876 using TCP or UDP.
Search JabSto ::

Custom Search