Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
phanimahesh
3 months ago
|
parent
|
context
|
favorite
| on:
Dotless Domains
IP addresses are 4 bytes, each in the range 0-255. In binary bits xyz would be equivalent to decimal x
2^2+y
2+z. Similarly, bytes abc would be equivalent to decimal a
256^2+b
256+c.
IP address p.q.r.s is decimal p
256^3+q
256^2+r*256+s.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
IP address p.q.r.s is decimal p256^3+q256^2+r*256+s.