• 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 Network Server Reachability
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining Network Server Reachability


  • Subject: Re: Determining Network Server Reachability
  • From: "Daniel Ellis" <email@hidden>
  • Date: Thu, 21 Jun 2007 19:39:39 -0700

Neither SCNetworkCheckReachabilityByName() nor SCNetworkCheckReachabilityByAddress() can tell you whether you can successfully communicate with a given machine. The only reliable way to do that is to try to communicate with that machine.

'"Reachability" reflects whether a data packet, sent by an application into the network stack, can leave the local computer. Note that reachability does not guarantee that the data packet will actually be received by the host.'
http://developer.apple.com/documentation/Networking/Reference/SysConfig/SCNetwork/CompositePage.html


In practice, reachability is true if the address given is a LAN address and the local machine has an interface using Bonjour, or the address given is a global Internet address and the local machine has (or thinks it could establish by dialup) a connection to some Internet router. This doesn't mean that the network between the two machines is working, that the remote machine is listening or capable of responding, or that the firewalls in between would allow your particular packets through.

So does anyone have any suggestions as to a good way to determine reachability in this case?


Daniel

_________________________________________________________________
Make every IM count. Download Messenger and join the i’m Initiative now. It’s free. http://im.live.com/messenger/im/home/?source=TAGHM_June07


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Determining Network Server Reachability
      • From: Andrew Farmer <email@hidden>
References: 
 >Re: Determining Network Server Reachability (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: Put the display to sleep...?
  • Next by Date: Tracing memory leaks
  • Previous by thread: Re: Determining Network Server Reachability
  • Next by thread: Re: Determining Network Server Reachability
  • Index(es):
    • Date
    • Thread