<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

How to Check If a Port Is Occupied in Okta

Access Gateway
Okta Classic Engine

Overview

This article details how to check if a port is occupied.

Applies To

  • Okta Access Gateway
  • Okta Classic Engine

Solution

Sometimes, a specific service/process cannot be started if the needed port is occupied. Through shell, the ss command can be used to check which service uses a specific port:

  • Command:

sudo ss -anp | grep <port>

 

  • Example: 
The below example shows nginx service with process id 2902 and 2901 using port 443

[0] oag-local@oag.support.lab;/home/oag-local# sudo ss -anp | grep :443
tcp   LISTEN     0      511                              0.0.0.0:443              0.0.0.0:*     users:(("nginx",pid=2902,fd=12),("nginx",pid=2901,fd=12))

Loading
Okta Support - How to Check If a Port Is Occupied in Okta