Hex IP to Decimal IP conversion

后端 未结 3 1345
再見小時候
再見小時候 2021-01-26 05:53

How can I convert a hex ip (such as 42477f35), and get it to spit out the correct decimal ip (in the example before, the correct result is 66.71.127.53

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 06:29

    Split the hex ip into octets (two hex digits at a time), and convert each octet to a decimal integer.

提交回复
热议问题