For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > November 2005 > Help with IP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help with IP
Freebird

2005-10-27, 6:56 pm

Hello,


How do I know, if a IP address is out of assignable range or unknown ??


Tks


Freebird



Oli Filth

2005-10-27, 6:56 pm

Freebird said the following on 27/10/2005 20:57:
> Hello,
>
>
> How do I know, if a IP address is out of assignable range or unknown ??
>


Out of which assignable range - the local network? That's determined by
the DHCP server (assuming that DHCP is running).

And what do you mean by unknown - if an IP address is unknown, by
definition, how are you going to be able to classify it?


--
Oli
Kimmo Laine

2005-10-28, 7:56 am

"C." <colin.mckinnon@gmail.com> wrote in message
news:1130500121.773560.66880@z14g2000cwz.googlegroups.com...
> So if your network is:
> 11000000.10101000.01111100.00000000 (192.168.124.0)
> and your netmask is
> 11111111.11111111.11111101.00000000 (255.255.253.0)
> then the first address is
> 11000000.10101000.01111100.00000000 (192.168.124.0)


Isn't that the net address, and the first free address is actually
192.168.124.1?

--
Welcome to Usenet! Please leave tolerance, understanding
and intelligence at the door. They aren't welcome here.
antaatulla.sikanautaa@gmail.com.NOSPAM.invalid


Colin McKinnon

2005-10-28, 6:56 pm

Kimmo Laine wrote:

> "C." <colin.mckinnon@gmail.com> wrote in message
> news:1130500121.773560.66880@z14g2000cwz.googlegroups.com...

<snip>
>
> Isn't that the net address, and the first free address is actually
> 192.168.124.1?
>

Whoops, yes you're right.

I didn't actually say I knew what I was talking about ;)

C.
Freebird

2005-10-29, 6:59 pm

Can you guys help me ?


Tks


Freebird


Oli Filth

2005-10-29, 6:59 pm

Freebird said the following on 29/10/2005 17:19:
> Can you guys help me ?
>


You've already been given some answers. Maybe if you clarified your
original question, you might get some more useful answers...


--
Oli
C.

2005-11-25, 7:55 am

> Well, all I want, is to be able to do a script that will understand if an IP
> is a possible IP assigned for the internet, or if it's a 'weird' IP, that
> someone assigned by it self


What you want is a router.

C.

Meião

2005-11-28, 3:55 am

You can only know which IP origined the request.
If your client is behind a Router (or NAT) you'll only be able to get
the router's address.
One can't send fake IP address in a packet if it wants the packet to go
back.
If your server gets a fake IP, it'll send the response to someone else.

But what is a weird IP?
something like 300.*.*.*?
Mostly any IP from 0.0.0.0 to 255.255.255.255 are valid and you can't
tell if it is valid or not (well, at least not with what i learnt from
my CCNA class).
Except those for internal lan's (192.168.*.* or 10.*.*.* and a few
more, I think) and 127.*.*.*

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com