Example: 192.168.1.1 → 3232235777
Example: 3232235777 → 192.168.1.1
| Διεύθυνση IP | Αριθμητική Αναπαράσταση | Περιγραφή | Ενέργεια |
|---|---|---|---|
| 127.0.0.1 | 2130706433 | Τοπική Διεύθυνση Loopback | |
| 192.168.1.1 | 3232235777 | Διεύθυνση Ιδιωτικού Δικτύου | |
| 10.0.0.1 | 167772161 | Διεύθυνση Ιδιωτικού Δικτύου | |
| 172.16.0.1 | 2886729729 | Διεύθυνση Ιδιωτικού Δικτύου | |
| 8.8.8.8 | 134744072 | Google DNS | |
| 1.1.1.1 | 16843009 | Cloudflare DNS |
An IPv4 address consists of 4 bytes (32 bits), each ranging from 0 to 255. An IP address can be converted into a 32-bit unsigned integer using the formula: Number = (Segment 1 × 256³) + (Segment 2 × 256²) + (Segment 3 × 256¹) + (Segment 4 × 256⁰)
For example: 192.168.1.1 = (192 × 16777216) + (168 × 65536) + (1 × 256) + 1 = 3232235777
This conversion is useful in scenarios like database storage, network programming, and IP range queries, as the numeric form is easier to compare and calculate.