Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. byte[] addrBytes;
  2. int addr;
  3. addrBytes = inetAddress.getAddress();
  4. addr = (((int)addrBytes[3]) << 24)
  5. | (((int)addrBytes[2]) << 16)
  6. | (((int)addrBytes[1]) << 8)
  7. | ((int)addrBytes[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement