• 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: "Matt Slot" <email@hidden>
  • Date: Fri, 26 Sep 2003 06:04:38 -0400

Quinn (email@hidden) wrote:
>That's weird. Before I suggested testing just for 127.0.0.1 I
>actually wrote a little test program to check my assumptions. Here's
>the code:
>
>I ran this under GDB and used another Terminal window to connect to
>it using "telnet localhost 12345". The address returned by accept
>was 127.0.0.1.

Correct, but I don't think the same is true if you connect to a listening
endpoint on the same host by IP address or by hostname.

Matt

+--------------------------+-----------------------------------+
| Matt Slot | Ambrosia Software, Inc. |
| Bitwise Operator | http://www.AmbrosiaSW.com/ |
+--------------------------+-----------------------------------+
_______________________________________________
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: determining if connection is local
  • Next by Date: Re: Using BSD sockets with MacOS 8 and 9
  • Previous by thread: Re: determining if connection is local
  • Next by thread: Re: determining if connection is local
  • Index(es):
    • Date
    • Thread