Forgot password?
 Register account
View 496|Reply 1

[Firefox]Convert an Integer to an IP Address

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2022-9-13 21:26 |Read mode
Convert decimal to base 256

7⇒0.0.0.7 Screenshot 2022-09-12 at 20-02-35 word里的单引号【’】与【'】 分别怎么打?_.png
77⇒0.0.0.77 Screenshot 2022-09-12 at 20-02-35 word里的单引号【’】与【'】 分别怎么打?_.png
770⇒0.0.3.2
770=3*256+2
Screenshot 2022-09-12 at 20-02-35 word里的单引号【’】与【'】 分别怎么打?_.png
770975⇒0.11.195.159 Screenshot 2022-09-12 at 20-02-35 word里的单引号【’】与【'】 分别怎么打?_.png
7709756⇒0.117.164.60 Screenshot 2022-09-12 at 20-02-35 word里的单引号【’】与【'】 分别怎么打?_.png

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2022-9-13 23:37
superuser.com/questions/736583
The last 32-bits of the number are 3660944368 (in decimal, which can be found by 714687644714805209715128610715964400 mod 2^32)

This is the decimal value of the IPv4 address 218.53.147.240, which can be found by converting it to base-256 3660944368 = 218*(256^3)+53*(256^2)+147*(256)+240 analogous to writing out a number in decimal (base-10). For example 234 = 2*10^2+ 3*10 + 4.
bugzilla.mozilla.org/show_bug.cgi?id=67730
I don't think we should block these urls.  It's much easier for me to remember
2259499800 than it is for me to remember 134.173.59.24, and it isn't much more
obfuscated.
connect.mozilla.org/t5/discussions/converting … l-numbers/td-p/10123
Simple question about the address bar in Firefox 102.0.1.

I discovered today that you can convert bytes into IP addresses by typing for example "2130706433/", which will result in the address being resolved to "127.0.0.1". Is this an intended feature or unintended behavior? Thanks.

Mobile version|Discuz Math Forum

2025-6-5 01:46 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit