• 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: determining if connection is local
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determining if connection is local


  • Subject: Re: determining if connection is local
  • From: Chaz McGarvey <email@hidden>
  • Date: Fri, 26 Sep 2003 14:49:36 -0600

Hello:

Weird.

Yes it is. Weirder, my client just started returning 127.0.0.1 consistently, until I restarted my computer and it went back to reporting 192.168.0.3. It used to report 0.0.0.0, but I haven't seen that recently. The only conclusion I can draw is that a client really doesn't report 127.0.0.1 all the time. Not that it matters now.

I'd be a *lot* happier if you used a Unix domain socket for local comms. The sockets API is pretty transport independent in this respect. To switch to a Unix domain socket all you need to do is change the first parameter of "socket" to AF_UNIX, change the server to bind to a path (in a sockaddr_un), and change the list to connect to that same path. The rest of your sockets code should work pretty much transparently.

Well, yes. I plan to do that because you suggested it and your security opinions are worth more than mine. It makes better sense to do this anyway, I suppose. Fortunately, it's so easy.

Thanks for everybody's input,
Chaz McGarvey
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: determining if connection is local (From: Quinn <email@hidden>)

  • Prev by Date: Re: Raw Ehternet Sockets on 10.1?
  • Next by Date: Re: Raw Ehternet Sockets on 10.1?
  • Previous by thread: Re: determining if connection is local
  • Next by thread: Using BSD sockets with MacOS 8 and 9
  • Index(es):
    • Date
    • Thread