Re: wan ip ?
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Sat, 24 Mar 2007 18:10:56 +0200
So possible to say that if IP is not IP of your LANs that WAN IP.
Arkady
"Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
news:%23WqvjuWbHHA.4140@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- wan ip ?
- From: Mike
- Re: wan ip ?
- From: Alexander Nickolov
- wan ip ?
- Prev by Date: Re: How can I delete the multicast route?
- Next by Date: Re: Which service starts WinSock2
- Previous by thread: Re: wan ip ?
- Next by thread: Re: wan ip ?
- Index(es):
Relevant Pages
|