Changing Central Administration Port in SharePoint isn't frequent task, but you may have to do it in some situations:
- Perhaps during SharePoint installation, Central Administration Web site may be established with a random port, and you want to change it now.
- It was assigned with a port number which is prone to cause port conflicts,
- Some other programs (such as backup software) wants to use the port assigned to Central Admin
- Your organization's IT Policy doesn't allow to host the site on the particular port, etc.
The simplest way to accomplish this is by using the PowerShell cmdlet
To change central administration port in SharePoint 2010 or in SharePoint 2013, use the PowerShell cmdlet: Set-SPCentralAdministration
Set-SPCentralAdministration -port <Port Number>
The above cmdlet allows ports between 1023 and 32767 and blocks any other ports (Port 443 is not allowed). You will get "Invalid Port" error message if you try some other port doesn't fall under this criteria.
While the above cmdlet helps change SharePoint 2010 central administration port and for SharePoint 2013, In MOSS 2007 we've the same old Stsadm tool!
Use Stsadm to change Central Admin Port in SharePoint 2007:
If you still want to use the port which is not supported by the Set-SPCentralAdministration or if you are running SharePoint 2007, you got to use the same old STSADM command line tool.
Stsadm -o setadminport -port <PortNumber>
Once you get "Operation completed successfully." you can access the Central Admin in New port.
Not sure, in which port central admin is hosted? sure, run stsadm.exe -o getadminport command if you want to get the current port of central administration. Both the PowerShell cmdlet and STSADM commands updates everything including IIS Bindings, all the shortcuts.
Re-run SharePoint Product Configuration Wizard
You can also change port by run the SharePoint Product & Technologies Configuration Wizard (Psconfigui.exe)
Distribute and Load Balance Central Admin
Technet Reference: Change the Central Administration Web site port number
Want to find which ports are being used by the server? Use "Netstat -a" command in command prompt. This will give you the ports already in use!
You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.