The InetAddress class has a getByAddress method that takes as input a byte array containing IPv4 or IPv6 . But in Java, the maximum value of byte is 128 , that is, some addresses cannot be transferred, for example,
InetAddress host = InetAddress.getByAddress(new byte[]{192, 168, 0, 1}); will swear since 192 and 168 not in the range of byte values.
That is, it turns out that not all addresses can be transferred? Or am I misunderstanding something?