• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to find out if a TCP port is in use?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find out if a TCP port is in use?


  • Subject: Re: How to find out if a TCP port is in use?
  • From: "Finlay Dobbie" <email@hidden>
  • Date: Sat, 18 Mar 2006 09:35:12 +0000

On 18/03/06, Chris Ridd <email@hidden> wrote:
> On 18/3/06 5:52, Aurélien Hugelé <email@hidden> wrote:
>
> >
> > On 17 mars 06, at 19:23, Finlay Dobbie wrote:
> >
> >> On 17/03/06, Stephan Ruggiero <email@hidden-
> >> heidelberg.de> wrote:
> >>> Hi,
> >>> thank you, I think this should do the trick.
> >>>
> >>> lsof -i :abc
> >>> gives me every process listening on or connected to the port abc.
> >>>
> >>> If other user`s processes are needed, you can just run lsof with
> >>> sudo.
> >>
> >> Well, I wouldn't use this approach if you want to determine this
> >> programmatically.
> >
> > Can you advice another better approach ?
>
> Do what the lsof program does directly in your code?

Well, that's a possibility, but you might introduce dependencies on
kernel implementation details :-)

I was more referring to the use of "sudo". Use Authorization Services
instead. Apologies if I was unclear.

 -- Finlay
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: How to find out if a TCP port is in use? (From: Aurélien Hugelé <email@hidden>)
 >Re: How to find out if a TCP port is in use? (From: Chris Ridd <email@hidden>)

  • Prev by Date: Re: app controller's dealloc not called
  • Next by Date: Re: How to find out if a TCP port is in use?
  • Previous by thread: Re: How to find out if a TCP port is in use?
  • Next by thread: Re: How to find out if a TCP port is in use?
  • Index(es):
    • Date
    • Thread