| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
--- At Sun, 23 Apr 2006 15:50:40 -0700, Justin C. Walker wrote:[snip]On Apr 23, 2006, at 13:06 , Duane Murphy wrote:
What is the best way for me to get the IP address that the other end would use? Would a routing socket be the best way? But doesn't that require root/authenticated access? Is there another, simpler way?
Your system has a bunch of IP addresses, so you are going to have to tell your clients which address to use. For example, here in my home network, my main system has several IPv6 addresses and several IPv4 addresses. The v4 addresses include: globally routable IP address (assigned by my IP), and one private IP address for each of several interfaces. In fact, the interface to the outside world has several IP addresses itself, for some fiddling I am doing locally. That is why the system won't be able to guess which IP address your code really wants to listen on.
Hope that makes sense.
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.
The one that makes the most sense to me, if it works the way that I think it does, is the routing socket. If I could ask the routing logic which local ip address would be used for some destination address, I think that would be great.
At the risk of being pedantic :-}
Cheers,
Justin
-- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds -------- If you're not confused, You're not paying attention --------
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/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>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.