Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Alternative URL encryption method-IP address binary conversion

Shulou Source: shulou.com Published: 2022-06-01 03:25:19 10月03日 Update

I'm looking at the subnet mask calculator today. My math has always been a hard wound, and my brain is not very flexible.

But it turns out. IP decimal calculation. I didn't understand it at that time. What the heck is decimal calculation.

Take Baidu as an example. (because the address resolved after the domain name ping of our 51cto cannot be accessed directly. Awkward)

Whether it's www.baidu.com,

Or 61.135.169.121?

The result after the interview is the same.

But there is another way to visit.

Whether it's http://1032300921,

Or 1032300921?

The result is the same.

So here comes the question. How did this number come from?

The calculation process is as follows.

Divide dots into decimal

61.135.169.121

Convert to a decimal number

612562562561352562561692561211032300921

1023410176 + 8847360 + 43264 + 121 + 1032300921

Knowledge point: another representation of IP addresses converts 32-bit binary IP addresses into decimal integers

Tags: Decimal decimal address result or awkward binary method domain name number integer knowledge knowledge point brain representation calculator process problem subnet alternative Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft OPPO Reno Docker Huawei MySQL