Reply
New Member
Posts: 30
Registered: ‎10-22-2014
Solutions: 1

Re: Unifi controller port 8080 in use

herewith is my working system.properties file. you might need to uninstall and reinstall and compare the settings.

## system.properties
#
# each unifi instance requires a set of ports:
#
# unifi.http.port=8080     # device inform
# unifi.https.port=8443    # controller UI / API
# portal.http.port=8880    # portal redirect port for HTTP
# portal.https.port=8843   # portal redirect port for HTTPs
# unifi.db.port=27117      # local-bound port for DB server
# unifi.stun.port=3478     # UDP port used for STUN
#
# system_ip=a.b.c.d        # the IP devices should be talking to for inform
# unifi.db.nojournal=false # disable mongodb journaling
# unifi.db.extraargs       # extra mongod args
#
## HTTPS options
# unifi.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA
# unifi.https.sslEnabledProtocols=TLSv1
#
# Ports reserved for device redirector. There is no need to open
# firewall for these ports on controller, however do NOT set
# controller to use these ports.
#
# portal.redirector.port=8881
# portal.redirector.port.wired=8882
#
#Fri Mar 18 06:05:22 UTC 2016
debug.device=warn
debug.mgmt=warn
debug.system=warn
download_timeframe=90
is_default=false
unifi.http.port=8090
uuid=71455947-b6b3-4f3a-9b4c-addc2ec99bb1

New Member
Posts: 30
Registered: ‎10-22-2014
Solutions: 1

Re: Unifi controller port 8080 in use

it can be a random free port

New Member
Posts: 5
Registered: ‎03-17-2016
Kudos: 3

Re: Unifi controller port 8080 in use

This is the contents in my properties file...

There is not much in there.... I have no idea....

 

## system.properties
#
# each unifi instance requires a set of ports:
#
# unifi.http.port=8080     # device inform
# unifi.https.port=8443    # controller UI / API
# portal.http.port=8880    # portal redirect port for HTTP
# portal.https.port=8843   # portal redirect port for HTTPs
# unifi.db.port=27117      # local-bound port for DB server
# unifi.stun.port=3478     # UDP port used for STUN
#
# system_ip=a.b.c.d        # the IP devices should be talking to for inform
# unifi.db.nojournal=false # disable mongodb journaling
# unifi.db.extraargs       # extra mongod args
#
## HTTPS options
# unifi.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA
# unifi.https.sslEnabledProtocols=TLSv1
#
# Ports reserved for device redirector. There is no need to open
# firewall for these ports on controller, however do NOT set
# controller to use these ports.
#
# portal.redirector.port=8881
# portal.redirector.port.wired=8882
#
#Fri Mar 18 07:48:58 UTC 2016
uuid=895ba222-d5e3-4fca-ab11-9d95cafce242

New Member
Posts: 5
Registered: ‎03-17-2016
Kudos: 3

Re: Unifi controller port 8080 in use

 changed the 8080 number to 8055 and then ran the app again and it still came up saying "port 8080 in use"...

New Member
Posts: 5
Registered: ‎03-17-2016
Kudos: 3

Re: Unifi controller port 8080 in use

I dont have the numbers at the bottom of the file like you...... what the hell am I doing wrong......

Ubiquiti Employee
Posts: 12,174
Registered: ‎02-10-2014
Kudos: 4286
Solutions: 982
Contributions: 17

Re: Unifi controller port 8080 in use

@zzviper can you upload the system.properties file, please?  Sometimes the community will format things improperly.  I can put your system.properties file on an install on my side and see what's going on.


Many Questions are Answered in the KnowledgeBase
Don't forget to kudo helpful posts and mark threads as solved
Forum Rules
New Member
Posts: 9
Registered: ‎02-09-2016
Kudos: 2

Re: Unifi controller port 8080 in use

Hi, I've just received my unifi switch and am having the same issues with "port 8080".

Ive looked at the port and it is used by system files on windows and so cant even be forced closed..

I've gone to the system files/data and pretty much every other file in the Ubiquiti UniFi folder and the data file is empty so I cant change the port settings.. Ive been at this for 2 days, had a friend in networking have a look at it as well to no avail. I have deleted and reloaded the controller, deleted old Java files, updated Java..

what I do find interesting and somewhat disturbing is that it seems this is not a single case as i have read multiple  threads, on here and other sites, with the same issue dating back years. Dating back years with the same issue. Is it some kind of thing where you sit back and giggle at not completely clued up IT experts?

Could it be that it would be easier to choose an alternative port in the downladed file that is not used by; system folders and it would seem every other maker of equipment?

I have no access to IT help as i live in an isolated area of Western Australia. I have 3 unifi AP's, unifi 24/250 switch and no chance to complete an install because of a software issue..

please help

Ubiquiti Employee
Posts: 12,174
Registered: ‎02-10-2014
Kudos: 4286
Solutions: 982
Contributions: 17

Re: Unifi controller port 8080 in use


@plminiloads wrote:

Hi, I've just received my unifi switch and am having the same issues with "port 8080".

Ive looked at the port and it is used by system files on windows and so cant even be forced closed..

I've gone to the system files/data and pretty much every other file in the Ubiquiti UniFi folder and the data file is empty so I cant change the port settings.. Ive been at this for 2 days, had a friend in networking have a look at it as well to no avail. I have deleted and reloaded the controller, deleted old Java files, updated Java..

what I do find interesting and somewhat disturbing is that it seems this is not a single case as i have read multiple  threads, on here and other sites, with the same issue dating back years. Dating back years with the same issue. Is it some kind of thing where you sit back and giggle at not completely clued up IT experts?

Could it be that it would be easier to choose an alternative port in the downladed file that is not used by; system folders and it would seem every other maker of equipment?

I have no access to IT help as i live in an isolated area of Western Australia. I have 3 unifi AP's, unifi 24/250 switch and no chance to complete an install because of a software issue..

please help


Can you run the included discovery tool, please?  That should generate the system.properties file where you can change the ports.


Many Questions are Answered in the KnowledgeBase
Don't forget to kudo helpful posts and mark threads as solved
Forum Rules
New Member
Posts: 9
Registered: ‎02-09-2016
Kudos: 2

Re: Unifi controller port 8080 in use

[ Edited ]

Hi again. 

So I got my controller working with your help and the help of Unifi discovery. 

Im now in the adoption process. With the change of ports do I need to change any settings in the controller to accomodate this as it runs or 20 mins or so and then says the controller is disconnected from the switch

🤗😝 Three hours so far adopting. I reckon Brad and Agelina could get a kid from Africa quicker 😝🤗

Ubiquiti Employee
Posts: 12,174
Registered: ‎02-10-2014
Kudos: 4286
Solutions: 982
Contributions: 17

Re: Unifi controller port 8080 in use

No additional settings need to be changed in the controller.  So it's the adoption of a device that is not working?  How did you notify the device where the UniFi controller was (SSH/DNS/Discovery Tool/DHCP Option 43)?  If you SSH in to the device and issue the:

info

command, what is the output?


Many Questions are Answered in the KnowledgeBase
Don't forget to kudo helpful posts and mark threads as solved
Forum Rules
New Member
Posts: 9
Registered: ‎02-09-2016
Kudos: 2

Re: Unifi controller port 8080 in use

[ Edited ]

Hi, a couple of discoveries that may make it easier for a newby like me:

when changing the ports in data, change the ports but then remove all the hashes, text and "white spaces"before and after the port numbers before saving or it doesn't change the ports. As in the attached picture is the way it looks to save it.

use the Unifi discover tool to generate the data file if it won't start at all.

use Google Chrome as default browser when opening Unifi Controller to adopt, it might work on explorer or edge when it's up and running but it won't adopt on any of the other two browsers. 

These few things can save a lot of time rummaging around in netstat and command prompts when it really seems to be simple stuff that stops it opening the software and adopting the hardware..

Hopefully someone finds bits of this simple-mans fixes to what can be a frustrating process helpful..

 

cheers for for the helps from the UbNt people on here and live chat crew.

thanks

Geoff

Blue Lights to all ☺️

 

image.png
New Member
Posts: 8
Registered: ‎04-08-2015

Re: Unifi controller port 8080 in use

It'd be great if you told the rest of us where that file was in Windows and what it was named.

 

Thanks

New Member
Posts: 1
Registered: ‎10-12-2016

Re: Unifi controller port 8080 in use

Hi Geoff,

thanks for your post you have helped me fix my issue with 8080

I spent some time on this and while it was still fresh I thought just to clarifiy for others

you can find your system.properties

 

1) if using Windows  mine was = C:\Users\Peter\Ubiquitti\data\system.properties

 

2) edit the file (if it does not exsist do a Discover with other program)

and as Geoff has mentioned with out spaces I have actually captured this for others to understand using a text editor I notepad!... I used Notepad++ and if you place the cursor at end of all your lines of port numbers and backspace to

 

3) clean these up as per the before shot and after shot I  have attached.

 

4) also Notice the 5 lines of port numbers Only  as Geoff suggested use only these lines with a different port number on 8080 

I used 8880  then once save and you run you Unfi app again it will say starting this time if all is good and it will generate a new system.properties file with your new port numbers and all the other text and comments

 

notice space after where cursor is 

before2.png

 

after2.png

 

must be cleaned out with backspace on all lines and saved as per next picture above

 

hope this helps others 

thanks again Geoff

 

Peter

 

 

 

New Member
Posts: 1
Registered: ‎02-01-2017

Re: Unifi controller port 8080 in use

This is the contents in my properties file...

There is not much in there.... I have no idea....

Need Help!

 

## system.properties
#
# each unifi instance requires a set of ports:
#
## device inform
# unifi.http.port=8888
## 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
#
## the IP devices should be talking to for inform
# system_ip=a.b.c.d
## disable mongodb journaling
# unifi.db.nojournal=false
## extra mongod args
# unifi.db.extraargs
#
## HTTPS options
# unifi.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA
# unifi.https.sslEnabledProtocols=TLSv1,SSLv2Hello
#
# Ports reserved for device redirector. There is no need to open
# firewall for these ports on controller, however do NOT set
# controller to use these ports.
#
# portal.redirector.port=8881
# portal.redirector.port.wired=8882
# Port used for throughput measurement.
#
# unifi.throughput.port=6789
#Wed Feb 01 12:12:27 UTC 2017
uuid=571a19f6-4110-407f-baf7-3a4ea64990b9

 

Can anyone help?

New Member
Posts: 7
Registered: ‎03-11-2014
Kudos: 1

Re: Unifi controller port 8080 in use

What is your error message, "Unifi controller port 8080 in use"?

 

If yes you need to edit this line

# unifi.http.port=8888

remove the # and the space so it reads

unifi.http.port=8888

 

Change to 8888 to any free port you want to use

New Member
Posts: 18
Registered: ‎01-13-2015
Kudos: 1

Re: Unifi controller port 8080 in use

Ok guys I can see what you hae posted ut it is all greek to some of use that is not in their computer messing with the settings everyday. Please tel us how to get to where these prot setting are so that we can make the changes. 

New Member
Posts: 1
Registered: ‎11-03-2016

Re: Unifi controller port 8080 in use

I'm having the same problem as everyone else.  I have an idea of what the culprit (program that took port 8080).  I installed some video camera software which acts as a server to export video. 

 

I've attached my troubleshooting file.  What do I need to do?  Can I change the port on UniFi to a different one?  How do I know what's available and what config file do I change it through.  Complete nubie here...

Highlighted
New Member
Posts: 1
Registered: ‎11-27-2018

Re: Unifi controller port 8080 in use

[ Edited ]

open command prompt

 

netstat -ano

 

check which pid is associated with port 8080

 

then type


taskkill /pid 3608 /F

 

replace 3608 which your pid number.

 

Open Unifi Controller

Reply