Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte[] addrBytes;
- int addr;
- addrBytes = inetAddress.getAddress();
- addr = (((int)addrBytes[3]) << 24)
- | (((int)addrBytes[2]) << 16)
- | (((int)addrBytes[1]) << 8)
- | ((int)addrBytes[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement