Re: determining if connection is local
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.