I have a university project that I need to work on and part of it will require me assigning users a specific avatar when they log into the site.
To shake things up a little and remove the totally random aspect I want to set up ranges of IP addresses which each correspond to one of the avatars. This means that users from different areas will have a higher probability of recieving an avatar than users in another.
There are 4,200,000,000 odd Ip4 addresses and I need to split them up into 1000 ranges. How do Ip addresses incriment?
They start at 0.0.0.0, but is the next one 0.0.0.1?
What happens once the address reaches 0.0.0.255? Is the next one 0.0.1.0?
Any help or suggestions would be greatly appreciated!!
IP Addresses
Moderator: General Moderators
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: IP Addresses
I suggest you spend a little time learning about IP addresses, and particularly the different classes.
Wikipedia might be a good place to start
Wikipedia might be a good place to start