Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Determine My IP Address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine My IP Address



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


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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.