IP Address Converter

后端 未结 7 1033
臣服心动
臣服心动 2020-12-29 11:17

There is IP address: 66.102.13.19, and from this address as that received this address

http://1113984275

But how? And how I can make this

相关标签:
7条回答
  • 2020-12-29 11:52

    Simple int to IP conversion for bash

    dec2ip ()
    {
       local v=$1
       local i1=$((v>>24&255))
       local i2=$((v>>16&255))
       local i3=$((v>>8&255))
       local i4=$((v&255))
       printf '%d.%d.%d.%d\n' $i1 $i2 $i3 $i4
    }
    
    0 讨论(0)
提交回复
热议问题