• 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: Determine My IP Address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine My IP Address


  • Subject: Re: Determine My IP Address
  • From: Peter Bierman <email@hidden>
  • Date: Sun, 23 Apr 2006 18:20:16 -0700

At 5:20 PM -0700 4/23/06, Duane Murphy wrote:
Yes, all of that makes sense. I'm still wondering what the best solution
would be to determine which address to tell to the other client.


And the answer is....

DON'T tell the other client. Let the other client get the info for themselves from their own network stack.

Sending your own IP address over the network as part of your payload is ALWAYS WRONG.

1) you don't know your IP address. You can jump through hoops and maybe correctly determine what it was when it left your machine, but...

2) you don't know what happens between you and the other end of the connection. The IP address in the _packet header_ might be changed several times between you and the other end of the trip. This is how NAT works, but NAT isn't the only thing that may do this.

3) you don't need to know your IP address. If the packet gets to the other end, the other end ALREADY knows how to talk to you, they get the return address as part of the header of the packet they received.

4) you're just wasting bandwidth. Your IP address, or more accurately, an address that the remote end can use to talk back to you, is already in the header. Putting it in the packet just duplicates data.

-pmb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Determine My IP Address
      • From: "Duane Murphy" <email@hidden>
References: 
 >How to get client IP address assigned by Cisco VPN client (From: Martin Bestmann <email@hidden>)
 >Re: How to get client IP address assigned by Cisco VPN client (From: Josh Graessley <email@hidden>)
 >Re: How to get client IP address assigned by Cisco VPN client (From: "Duane Murphy" <email@hidden>)
 >Re: How to get client IP address assigned by Cisco VPN client (From: "Justin C. Walker" <email@hidden>)
 >Determine My IP Address (was Re: How to get client IP address assigned by Cisco VPN client) (From: "Duane Murphy" <email@hidden>)

  • Prev by Date: Re: Determine My IP Address (was Re: How to get client IP address assigned by Cisco VPN client)
  • Next by Date: Re: Determine My IP Address
  • Previous by thread: Re: Determine My IP Address (was Re: How to get client IP address assigned by Cisco VPN client)
  • Next by thread: Re: Determine My IP Address
  • Index(es):
    • Date
    • Thread