How do you tell if a server is running on a particular port in linux?
I'm trying to run weblogic server on my linux machine and i'm getting the following error
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
I think this error means that the debugger port which is by default 8453 is already owned by a service How do i get a port number?
P.S: I used netstat
command but that shows all the services occupying all ports ..here I am interested in a particular port only.
Best Answer
Two ways.
lsof -i :port -S
netstat -a | grep port
You can do man lsof
or man netstat
for the needed info.
Replace port
by the port number you want to search for.