Determine My IP Address (was Re: How to get client IP address assigned by Cisco VPN client)
Determine My IP Address (was Re: How to get client IP address assigned by Cisco VPN client)
- Subject: Determine My IP Address (was Re: How to get client IP address assigned by Cisco VPN client)
- From: "Duane Murphy" <email@hidden>
- Date: Sun, 23 Apr 2006 17:20:43 -0700
--- At Sun, 23 Apr 2006 15:50:40 -0700, Justin C. Walker wrote:
>
>On Apr 23, 2006, at 13:06 , Duane Murphy wrote:
>
>> --- At Thu, 20 Apr 2006 13:33:57 -0700, Josh Graessley wrote:
>
>A couple of comments:
>
>> I have an interesting situation that I've been trying to solve.
>
>Please don't hijack threads. It is bad for those that try to keep
>their lists "threaded", and it can cause problems (e.g., those that
>just delete threads that aren't interesting to them will miss your
>questions; and it confuses the archival record).
Apologies. I didn't notice that the thread title was specifically for
Cisco (small display area in my mail program for the message title).
<snip because it all makes sense>
>> 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.
Is that something that can be determined?
...Duane
_______________________________________________
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