FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Diferenciar tipo de IP por usar
Posts: 592
Joined: Tue Mar 14, 2006 11:34 PM
Diferenciar tipo de IP por usar
Posted: Thu Apr 29, 2010 11:50 PM

Hola a todos,

Hay alguna manera de saber si el IP introducido es LAN o WAN ??

Por lo que veo aqui en Mexico la gran mayoria de LANs usan 192.168.X.X

Lo que necesito saber, es que tipo de coneccion quiere usar el usuario.

Saludos

FWH 10.6 + xHarbour + Borland 582
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Diferenciar tipo de IP por usar
Posted: Fri Apr 30, 2010 05:05 AM

Dear Mr.Raymundo

Companies and organization use the below given IP ranges on the inside of their networks so these IP (non-routable) ranges are being used in millions of networks around the world.

Reserved IP addresses for private networks (Non Routable IP's )
10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255

A routable IP address is one that can be reached (or routed) by anyone on the internet. You need this so that when you type http://www.fivetechsoft.com, they can send you the information.

A non routable IP address means internet people can't reach you. (inTRAnet people can.) My computer has a non routable IP address of 192.168.0.101. My router takes the IP address my ISP give me, and assigns non routable address for the computers on my network. This makes it much harder for people to try to hack my computer. (a router is harder to hack then windows...)

Regards
Anser

Posts: 592
Joined: Tue Mar 14, 2006 11:34 PM
Re: Diferenciar tipo de IP por usar
Posted: Fri Apr 30, 2010 05:36 AM

Anser,

Thanks a lot for your reply, that's exactly the info I was looking for :P

Now I can tell if some user is connecting to some local server or remote one.

I really appreciate this.

Best regards

FWH 10.6 + xHarbour + Borland 582

Continue the discussion