• 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: Possible to listen on localhost only w/o getting Firewall alert?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to listen on localhost only w/o getting Firewall alert?


  • Subject: Re: Possible to listen on localhost only w/o getting Firewall alert?
  • From: Josh Graessley <email@hidden>
  • Date: Mon, 16 May 2011 15:33:54 -0700

Is this a tcp socket? Are you binding to a loopback address (127.0.0.1, ::1, fe80::1%lo0) before calling listen? If you are binding to the loopback address first and you're still getting an error, you may want to consider filing a bug requesting an enhancement.

If you use an AF_UNIX socket instead of AF_INET/AF_INET6, you may benefit from better performance and no firewall.

-josh

On May 16, 2011, at 2:17 PM, Mac QA wrote:

> Hi,
>
> The first time one opens a socket to listen in their app then the Mac
> OS X pops up that typical alert dialog that reads "Do you want to the
> application "MyApp.app" to accept incoming network connections?"
> Question: if your app only needs to listen for connections from the
> localhost (not any network address), just to talk to another process
> on the same machine, is there a way to do that without causing the Mac
> OS X Firewall to produce that alert dialog?
>
> MacQAGuy
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

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

This email sent to email@hidden

References: 
 >Possible to listen on localhost only w/o getting Firewall alert? (From: Mac QA <email@hidden>)

  • Prev by Date: Re: Possible to listen on localhost only w/o getting Firewall alert?
  • Next by Date: iOS4 and VPN
  • Previous by thread: Re: Possible to listen on localhost only w/o getting Firewall alert?
  • Next by thread: iOS4 and VPN
  • Index(es):
    • Date
    • Thread