Find (AND KILL) port 23515 Mac osx

David Iliyn picture David Iliyn · Aug 18, 2017 · Viewed 17.3k times · Source

new here have learned tons over the years and happen to have a pretty puzzling question. I just purchased a product to help edit photos in Adobe Lightroom. Its called a Loupedeck. Comes with software and is a device that controls all the parameters in Lightroom (makes editing way quicker) Once I installed their loupdeck software and opened Lightroom I immediately got this prompt.

"Loupedeck needs access to tcp ports 23515 and 23516. Other process is currently occupying 23515. Loupedeck will not work until that application is closed."

I have been searching for days trying to find what app I have installed thats using or used port 23515. I have tried checking in terminal with the simple netstat command, and found nothing. I've used little snitch to see if any programs are using that port, still nothing. Im a little lost and sadly the company is also lost and has no advice.

Computer - Macbook pro 2011 17" 2.3ghz OSX 10.12.6

Here is the error in Lightroom

Answer

ac1dh0n3ycl0ud picture ac1dh0n3ycl0ud · Aug 18, 2017

From this answer:

lsof -n -i4TCP:23515
lsof -n -i TCP:23515 | grep LISTEN
lsof -n -i:23515 | grep LISTEN

Netstat may also work:

netstat -ap tcp | grep -i "23515" 

Any of these commands should give you the name and PID of the process. Once you have the PID, you can kill the process, or if you know the process name is process_name you can use killall -KILL process_name .

Just for the record though, your terminal isn't running an administrative shell by default. In order to execute commands in terminal as an administrator, you have to use the command sudo su and then enter your password. Once you have a prompt with a #, you can try these commands again, just to be sure.