port process

Miguel Mendez flynn at energyhq.es.eu.org
Tue Jan 4 08:16:56 PST 2005


On Tue, 4 Jan 2005 10:07:00 -0600
Brian Henning <henninb at gmail.com> wrote:

Hi,

> I have a xvfb process that needs a network port (6112 I think), but
> there is a process already using the port. The problem is that I don't
> know what the process is that is using it. Is there a way in unix to
> tell what process is using a specific network port.

fstat(1) and sockstat(1) will show you that info.

Cheers,
-- 
Miguel Mendez <flynn at energyhq.es.eu.org>     | lea     gfx_lib(pc),a1
http://www.energyhq.es.eu.org                | moveq   #0,d0
PGP Key: 0xDC8514F1                          | move.l  4.w,a6
I reject all mail from hosts that use SORBS  | jsr     -552(a6)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050104/1092a5c9/attachment.bin


More information about the freebsd-questions mailing list