Re: Getting the IP address with remote DO
Re: Getting the IP address with remote DO
- Subject: Re: Getting the IP address with remote DO
- From: j o a r <email@hidden>
- Date: Sun, 25 Aug 2002 22:47:09 +0200
These two methods of finding out the client address will not return the
same values if the client is behind a NAT router, on a private IP
network. In that case the addresses you get from the client will be
"useless" as far as the server is concerned.
In my case I actually use both methods, and by comparing the two
sources of addresses I attempt to determine if the client is on a
"real" IP or behind a NAT router. If there is a better way to find out
I'd like to know, because it feels rather crude...
j o a r
On Sunday, Aug 25, 2002, at 22:10 Europe/Stockholm, Andrew
Zamler-Carhart wrote:
Another way of doing this is to have the clients cache their own IP
address using [[NSHost currentHost] address], and then give the server
a way to message the client for the cached value. That's what I do and
it's very clean.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.