Re: wan ip ?
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Fri, 23 Mar 2007 09:52:26 -0700
You don't. If you think about it, a WAN IP is a LAN IP in another
LAN... What you _can_ find out is if the IP is in the same network
or subnet as your host. Get the network mask and AND it with
your local IP address and the target IP address. If the results are
the same both you and the target are on the same network/subnet.
If they differ you may still be in the same network, but in different
subnets, or you may be in a completely different networks. That
of course is not the same as LAN vs WAN - a host in the same
network/subnet can still be on the WAN if VPN is used to connect
to your network. And a host on another subnet within your network
is still considered a LAN host. Thus my initial statement.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Mike" <michael@xxxxxxxxxxxxxxxxxxx> wrote in message
news:%23Ozi1OWbHHA.1400@xxxxxxxxxxxxxxxxxxxxxxx
Hi !
a small question, excuse me if this question has been already asked ...
how to know if an ip is from lan or wan ?
thanks
Mike
.
- Follow-Ups:
- Re: wan ip ?
- From: Mike
- Re: wan ip ?
- From: Arkady Frenkel
- Re: wan ip ?
- References:
- wan ip ?
- From: Mike
- wan ip ?
- Prev by Date: wan ip ?
- Next by Date: Re: How can I delete the multicast route?
- Previous by thread: wan ip ?
- Next by thread: Re: wan ip ?
- Index(es):
Relevant Pages
|
Loading