Re: wan ip ?



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





.



Relevant Pages

  • Re: making Samba work [Solved]
    ... > Microsoft uses 'domain' to describe a lan network topology interchangeably ... You can use in your LAN ... If you internally use the same mechanisms to resolve host names ... No DNS server needed then. ...
    (Fedora)
  • Re: Is any part of Ethernet circuitry tied to Open Firmware?
    ... a stinking LAN network. ... It is the interface between a LAN and a WAN; it is not a network itself. ... magically changed into LAN connections. ...
    (comp.sys.mac.system)
  • Re: Problems with broadcast? with two ethernet adaptors up
    ... > ssh astro.queensu.ca ... It means that anything sent to a host on the old classful "C" network ... hosts on your LAN. ... It defines the LAN hosts' IP address range and hence a LAN network route. ...
    (comp.os.linux.networking)
  • Re: 2 Network Cards in Win XP Pro
    ... will be for Internet Access and the other will be for the Local Network ... One NIC DHCP (WAN Side from an NT Server Box) and One NIC static (LAN ... The IP Scheme for the LAN is 192.168.1.X & 255.255.255.0 ...
    (microsoft.public.windowsxp.network_web)
  • Re: How do I setup static routing on Linksys
    ... I thought 192.168.2.1 through 99 were the Linksys' static IP. ... Block WAN Request = enabled, don't ask me about that WAN part because I ... > LAN 192.168.0.X 255.255.255.0 ... but I want to be able to connect from one network ...
    (comp.security.firewalls)