• 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: Getting the IP address with remote DO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Getting the IP address with remote DO (From: Andrew Zamler-Carhart <email@hidden>)

  • Prev by Date: Show hidden .files in open/save dialogs?
  • Next by Date: Re: Carbon Handles & NSData
  • Previous by thread: Re: Getting the IP address with remote DO
  • Next by thread: expecting IPv6 (Re: Getting the IP address with remote DO)
  • Index(es):
    • Date
    • Thread