Advertisement
Guest User

ping

a guest
Jul 22nd, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. rednet.open("top")
  2. os.loadAPI("lib")
  3. args= {...}
  4. id_switch= 1524
  5. rednet.send(id_switch,lib.createLoginPackage())
  6. id,mess= rednet.receive()
  7. if id == id_switch
  8. then
  9.    my_ip= mess
  10.    print("my ip",my_ip)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement