- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Sticky This Topic
- Bookmark
- Subscribe
- Printer Friendly Page

Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-14-2018 07:26 PM
Does anyone know how to change the cloudkey ports??
Accepted Solutions
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 04:50 AM
Hello @smtharrison,
You will need to edit the NGINX ports, sorry for the confusion.
/etc/nginx
I personally haven't tested it. (I'm not in a position to test it sorry)
Regards,
Glenn R.
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2-PLUS • UCK-G2 • UCK
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 09:13 AM
Got it changed. Thanks Glen!
FYI for those interested:
you need to edit /etc/nginx/sites-available/default
change the following from 80 to whatever port you want to use (8082 in my example).
server {
listen 8082 default_server;
listen [::]:8082 default_server;
Then edit /etc/nginx/sites-available/cloudkey-webui
change the following from 80 to whatever for http (8082 in my example)
server {
listen [::]:8082 ipv6only=off;
then further down, change the following from 443 to whatever for https (843 in my example)
server {
listen [::]:843 ssl ipv6only=off;
Reboot CloudKey (/sbin/shutdown -r now)
For me this did break the cloudkey login. Simple fix... see here:
https://community.ubnt.com/t5/UniFi-Wireless/Cannot-log-in-to-Cloud-Key-WebUI/td-p/1766902
Now I should be able to change the unifi ports. WIll try that now.
All Replies
Re: Change cloudkey port
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-14-2018 07:55 PM - edited 09-14-2018 07:56 PM
Hey smtharrison,
Have you seen this support document here.... I think this has all the dirt..
https://help.ubnt.com/hc/en-us/articles/204910084-UniFi-Change-Default-Ports-for-Controller-and-UAPs
https://help.ubnt.com/hc/en-us/articles/115000169007-UniFi-Port-Requirements-for-Cloud-Key
If not, I have no idea where to start!
Cheers,
E
Re: Change cloudkey port
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-14-2018 08:04 PM - edited 09-14-2018 08:05 PM
- I know how to change the Unifi ports, but I’m not sure what will happen if I do it on a cloud key. When you call up a cloud key, it answers on port 80 and 443 where you can select the Unifi controller or cloud key config. If I change the Unifi management port to port 80 and 443, I would think it would conflict.
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-14-2018 08:21 PM
Poked around, but can't seem to find any cloud key file to change the ports, just the usual unifi system.properties. @UBNT-MikeD ?
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-14-2018 08:22 PM
Re: Change cloudkey port
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-14-2018 11:44 PM - edited 09-14-2018 11:45 PM
Hello @smtharrison,
Yup, edit the system.properties file.
I would recommend stopping the UniFi service when you're editing.
service unifi stop
Either remove the # on the other lines or add these.
## device inform unifi.http.port=8080 ## controller UI / API unifi.https.port=8443 ## portal redirect port for HTTP portal.http.port=8880 ## portal redirect port for HTTPs portal.https.port=8843 ## local-bound port for DB server unifi.db.port=27117 ## UDP port used for STUN unifi.stun.port=3478
Just change the port numbers to your likings, after the changes start the service
service unifi start
Regards,
Glenn R.
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2-PLUS • UCK-G2 • UCK
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 04:42 AM
Glen, I have done this before running my on controllers, however this is a cloud key. I do not see how to change the cloud key port (which is port 80 and 443by default).
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 04:50 AM
Hello @smtharrison,
You will need to edit the NGINX ports, sorry for the confusion.
/etc/nginx
I personally haven't tested it. (I'm not in a position to test it sorry)
Regards,
Glenn R.
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2-PLUS • UCK-G2 • UCK
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 05:04 AM
Ahh... that gives me something to play with. Thank you! Will let you know how it goes
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 07:54 AM
Just curious - why?
I understand when you are installing on your own server that has conflicting demands for ports. But that isn't an issue with the CK.
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 08:06 AM
Because I want unifi mgmt at https://unifi.domain.com
I have a school district I manage a multi site unifi server on (Linux). I have folks that would never remember to add :8443, and they would always call to remind them the url. When I changed the unifi mgmt port to 443, those calls pretty much ceased. Would like to do the same with a cloud key.
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 09:13 AM
Got it changed. Thanks Glen!
FYI for those interested:
you need to edit /etc/nginx/sites-available/default
change the following from 80 to whatever port you want to use (8082 in my example).
server {
listen 8082 default_server;
listen [::]:8082 default_server;
Then edit /etc/nginx/sites-available/cloudkey-webui
change the following from 80 to whatever for http (8082 in my example)
server {
listen [::]:8082 ipv6only=off;
then further down, change the following from 443 to whatever for https (843 in my example)
server {
listen [::]:843 ssl ipv6only=off;
Reboot CloudKey (/sbin/shutdown -r now)
For me this did break the cloudkey login. Simple fix... see here:
https://community.ubnt.com/t5/UniFi-Wireless/Cannot-log-in-to-Cloud-Key-WebUI/td-p/1766902
Now I should be able to change the unifi ports. WIll try that now.
Re: Change cloudkey port
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2018 09:38 AM
limited seccess. when i chnage the unifi system.properties file from the default ports, i get no response (after starting and stopping services). CK page answers with the new ports.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Sticky This Topic
- Bookmark
- Subscribe
- Printer Friendly Page