0

I have a command which I am running that starts a process listening on a port. I am currently getting the following error.

socket exception: Address already in use

The problem is, I don't know what port the process is trying to listen on. Is there a way for me to monitor what port the process is trying to access?

I would post the code, but it is unfortunately not possible. I am running Redhat.

Dan Grahn
  • 103
  • 3

1 Answers1

1

strace will show you system calls, including what ports a given process tries to use.

Nathan C
  • 14,901
  • 4
  • 42
  • 62