Reply
Newbie
karljlewis
Posts: 3
Registered: ‎08-29-2012
Posts: 3
Registered: 08-29-2012

help unifi not connecting, port used by other

i cant get support to ever call back.....three months since install, 4 phone messages, no call backs......cant get discoverer to find controler, says port used by other programs....help me
Newbie
karljlewis
Posts: 3
Registered: ‎08-29-2012
Posts: 3
Registered: 08-29-2012

Re: help unifi not connecting, port used by other

is there a way of getting tech support to call back....ever
Regular Member
KimchiGUN
Posts: 539
Registered: ‎08-27-2010
Posts: 539
Kudos: 259
Solutions: 14
Registered: 08-27-2010

Re: help unifi not connecting, port used by other

Ive had more luck by email... but I get our corporate zones rep to email, she gets an email back within hours... dont get it but thats how it rolls with my luck...
-=* I can't teach you anything, I can only make you think *=-
SuperUser
Josh_SPITwSPOTS
Posts: 18,791
Registered: ‎11-20-2011
Posts: 18791
Kudos: 5992
Solutions: 151
Registered: 11-20-2011

Re: help unifi not connecting, port used by other

UBNT doesn't call as a rule of thumb I believe.

send an email to support@ubnt.com
Regular Member
IT_Tech
Posts: 374
Registered: ‎08-20-2012
Posts: 374
Kudos: 56
Registered: 08-20-2012

Re: help unifi not connecting, port used by other

Have you read the FAQ's?

I saw "Start-up failed" or "Server taking too long to start". What happened?
Mostly likely one or more ports needed by UniFi are being used by other programs. Take a look at /logs/server.log and you'll spot something like:
ERROR StandardServer - StandardServer.await: create:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
...
Please follow the instructions below to change the ports and fix the issue.
How can I run UniFi Controller on different ports
By default, UniFi controller runs on these ports
unifi.shutdown.port=8081 (for management purpose)
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)
Follow these steps to change the default settings
Make sure UniFi is not running
modify /data/system.properties and make sure all ports needed by UniFi are available
restart UniFi
Newbie
karljlewis
Posts: 3
Registered: ‎08-29-2012
Posts: 3
Registered: 08-29-2012

Re: help unifi not connecting, port used by other

okay, i do not know anything about ports, or where to go to do all that.....did i but something for a it person to install. i just wanted extended wifi at my house....thought thats what i bought
Regular Member
JMichieli
Posts: 320
Registered: ‎05-09-2012
Posts: 320
Kudos: 91
Solutions: 6
Registered: 05-09-2012

Re: help unifi not connecting, port used by other

The port is being used by another service. Which means that something is using ANY number of those ports.
I am assuming you are using windows.
What I have ran into many many times in the past is that the UniFi software is running already, and could have crashed, or started incorrectly.
Bring up taskmgr (Ctrl + esc) and make sure your looking at processes from all users. Search for java.exe and mongod.exe. End both of those tasks. If you are running UniFi as a service, look for Unifi.exe as well and end that task.
Try to start the controller up again. If you are still receiving the same error, something else (likely a web server) is using those ports. Double check and make sure that there is nothing else that could possibly use those ports. Just go through a process of elimination, end tasks that you have a good feeling could be using that port and try again. (To state the obvious, if you don't know what the process is, don't end it. You could potentially cause your computer to shut down or crash).
Veteran Member
LLigetfa
Posts: 10,864
Registered: ‎05-05-2012
Posts: 10864
Kudos: 3559
Solutions: 285
Registered: 05-05-2012

Re: help unifi not connecting, port used by other

okay, i do not know anything about ports, or where to go to do all that.....did i but something for a it person to install. i just wanted extended wifi at my house....thought thats what i bought
Maybe netstat will provide some clues.

I think UniFi is marketed mainly as an enterprise solution and as such the software and deployment is geared more to professionals.

From their web page:
Unlike traditional enterprise WiFi systems utilizing a hardware WiFi Switch, Unifi uses a virtual client/server application that requires zero cost and no additional hardware.
Regular Member
JMichieli
Posts: 320
Registered: ‎05-09-2012
Posts: 320
Kudos: 91
Solutions: 6
Registered: 05-09-2012

Re: help unifi not connecting, port used by other

Maybe netstat will provide some clues.


Yes indeed.

Open a command prompt and type: netstat -ano

This will list all listening connections, including their port number, and which process they are. Just search for those ports, take the PID for that connection, go into taskmgr, click on the processes tab. You will need to enable the PID column, it is disabled by default. So go to View->Select Columns. Then check the box next to PID (Process Identifier). Click ok, find your process by its PID, and end process.

In my head I'd like to believe that some of these ports can be taken up by proxy software, including firewalls, so be careful with what you are doing.
Longtime Visitor
dan_lhcc
Posts: 4
Registered: ‎12-12-2012
Posts: 4
Registered: 12-12-2012

Re: help unifi not connecting, port used by other

I am trying to change the listening port to something like 8082 instead of 8080. I do not understand the instructions for changing the port. I go to the command prompt and type in "modify /data/system.properties" find that modify is not a DOS command. What am I missing here?
Help is always appreciated.
Member
lou1z
Posts: 113
Registered: ‎10-17-2012
Posts: 113
Kudos: 18
Registered: 10-17-2012

Re: help unifi not connecting, port used by other

i'm not being funny here and i'm all for helping people out but.....
programs/daemons running on other ports, changing ports, not understanding what a port is etc etc is all basic stuff.
perhaps unifi is not the best thing to be playing with if you don't understand this?
Longtime Visitor
dan_lhcc
Posts: 4
Registered: ‎12-12-2012
Posts: 4
Registered: 12-12-2012

Re: help unifi not connecting, port used by other

I am a volunteer IT administrator for three non profits with 10 sites and about 150 computers. I run Google Apps on all the systems and do not have any servers except a bunch of Cisco RV0XX routers with DHCP servers and VPN's. I have installed Uni fi at three sites with captive portals but am now stuck at a site where Java is using port 8080. Deleting Java 7 it and reinstaling Java 6 still listens on Port 8080 . Per netstat Port 8084 is open. I have never needed to work with ports before so cannot understand the instructions for changing it. I will appreciate help, not just telling me I am too dumb to understand.
New Member
purpleque
Posts: 33
Registered: ‎05-08-2012
Posts: 33
Kudos: 6
Solutions: 1
Registered: 05-08-2012

how to change the ports

unifi controller is installed, on windows 7, into the following path: C:\Users\PurpleQue\Ubiquiti UniFi\

The instructions for changing the port , from the wiki:

Follow these steps to change the default settings
Make sure UniFi is not running
modify /data/system.properties and make sure all ports needed by UniFi are available
restart UniFi


= the install path of the unifi controller.

in there is a data folder, in the data folder there is a system.properties file. Open this system.properties file in something like notepad and make the port changes.


content of the file

## system.properties
#
# each unifi instance requires a set of ports:
#
# unifi.shutdown.port=8081 # for management purpose
# 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
#
# 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
#
#
#
#Fri Dec 14 02:18:09 UTC 2012
is_default=false
portal.http.port=8880
portal.https.port=8843
unifi.db.port=27117
unifi.http.port=8080
unifi.https.port=8443
unifi.shutdown.port=8081
uuid=fb3ccda9-a156-4ba9-9fde-d1f99fdfb4a9





EDIT: Further reading on the wiki: http://wiki.ubnt.com/UniFi_FAQ netted the full details on install path
Where is UniFi installed (or where is the )?
Mac -- /Applications/UniFi.app, the is at /Applications/UniFi.app/Contents/Resources
Windows -- "%userprofile%/Ubiquiti Unifi", which is the same as
Linux -- /usr/lib/unifi
Longtime Visitor
dan_lhcc
Posts: 4
Registered: ‎12-12-2012
Posts: 4
Registered: 12-12-2012

Re: help unifi not connecting, port used by other

Thanks Purpleque that solved my problem.
Frequent Visitor
jmdon
Posts: 7
Registered: ‎07-25-2011
Posts: 7
Registered: 07-25-2011

Re: help unifi not connecting, port used by other

[ Edited ]

I'm not a big fan of bumping, but I'm running into the same issue here and cant figure out why the fix isnt working.

 

I'm runing Unifi on a Mac Mini.

 I can find the system.properties in the resources/data folder just fine

 

I edit that file, change the port to 8082, save it.

 

Start unifi.  It fails and tells me Port 8080 is in use by other programs

 

I open the system.properties file again.  My edit took just fine....  

# unifi.http.port=8082 # device inform

 

 

Extra Strange part....   System WAS up and running.  I do know that a DirecTV receiver is being controlled on Port 8080 so when I set the system up originally, I set it to 8082 and it worked just fine...  

 

This mac is running 10.8.2 as a host for a Savant control system, so no software has been installed since installing the Unifi controller.  Asside from Savant software, Its has Chrome and Logmein and Unifi.  thats it.

 

I did try changing all Ports from 8xxx to 9xxx even....  Still says its failing because 8080 is in use.

 

 

Frequent Visitor
jmdon
Posts: 7
Registered: ‎07-25-2011
Posts: 7
Registered: 07-25-2011

Re: help unifi not connecting, port used by other

anyone?

Member
tcuser
Posts: 177
Registered: ‎02-27-2012
Posts: 177
Kudos: 25
Solutions: 2
Registered: 02-27-2012

Re: help unifi not connecting, port used by other

i don't have a mac

 

but i thought anything between # # is a comment not a change.

 

look for another place that says 8080

Frequent Visitor
jmdon
Posts: 7
Registered: ‎07-25-2011
Posts: 7
Registered: 07-25-2011

Re: help unifi not connecting, port used by other

I was unsure why there was an area surrounded in the "#" symbols and what apeared to be the same settings below..

 

I did change it in the settings below the "#'s" as well and I'm still seeing the 8080 is in use error.  attached is a pic of my system.properites

 

 

 

 

syspropic.png
Member
tcuser
Posts: 177
Registered: ‎02-27-2012
Posts: 177
Kudos: 25
Solutions: 2
Registered: 02-27-2012

Re: help unifi not connecting, port used by other

[ Edited ]

like i said i am not running the controller on a mac. 

 

next suggestion if you have not done so already is restart the computer so that everything starts from scratch.

 

if that doesn't work then email support.

 

----

when i had this issue on windows xp pro what i did was change the port on the offending software instead of the unifi software.  My problem was my security cam software so I changed the port it used instead.  Also I installed the unifi as a service on windows.  If there is a way to do that in mac I would suggest you do that too.

Frequent Visitor
jmdon
Posts: 7
Registered: ‎07-25-2011
Posts: 7
Registered: 07-25-2011

Re: help unifi not connecting, port used by other

unfortunatly, the offending software is a control port for a direcTV satellite box.  I dont think I can change it.

 

I'll try another restart in the morning..  Pretty sure I did that after I changed the port.. but not positive.

 

Reply