You can manually search port usage with command prompt and the Resource Monitor, but if you would like to use a pre-made script you can follow the instructions below:


Manual CMD Option

The command that is used in the script is

netstat -an | find "port number"


You can run command prompt and use this command. 


Instructions

In the sample instruction below I will check which service is using the T&A port on my server PC. 


1. Download the attached .bat file on the server PC.  

2. Right click on the .bat file and run with administrator privileges.

3. To check the T&A port I will press and enter. 

4. My result is below. I will check the right most column which stores the PID (Process ID). It appears PID 4400 is using port 3000 and 3002


5. Open Task Manager with CTRL + SHIFT + ESC or by searching in Windows Start Menu. 

6. Select the Processes tab.

7. Click Show processes from all users.


If you don't see the PID column, select View > Select Columns


Check PID and click OK


8. I will search PID 4400. 


It appears node.exe is PID 4400 on my server PC. 

This is the correct service for BioStar 2 T&A as shown below. BioStar 2 T&A was developed with node.js so the process name appears as node.exe. 


If another process is using this port the T&A service will not operate properly.
You cannot configure T&A service to use a different port (currently in BioStar 2.5) so please stop the other service using port 3000 and 3002. 



Refer to the port numbers and process names below. 


BioStar 2 Ports

*process name (Image Name) shown in task manager is in blue


Database

  • Maria DB: 3312 (mysqld.exe)
  • ORACLE: 1521 
  • MSSQL: 1433 

T&A: 3000, 3002 (node.exe)

Nginx (web server): 9000

Websock: 9002 (biostar-server.exe)


BioStar 2 Server

  • 51212 (default) (biostar-server.exe)
  • 51213 (if TLS is used)

Web server : 80 (default)


Cloud:

  • 52000 (default) (nginx.exe *32)
    • V1 8790(app), 8781(doc)
    • V2 8795(app), 8786(doc)
  • 4443 (ngrok.exe *32)
  • URL: cloud.biostar2.com, api.biostar2.com


(Local) API server:

  • 27017 (default)


USB Agent: 8081, 8082 (usb-agent.exe *32)


UDP (device search): 51210


Dev Connection: 51211