Advertisement
Fews

Get My IP

Jul 24th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. rednet.open("top") --enable modem on the right side of the PC
  4. rednet.broadcast("internet;getmyip")
  5. print("Waiting for Response ...")
  6. id,message = rednet.receive()
  7. print(message)
  8. print("press enter key to continue")
  9. local a = read()
  10. term.clear()
  11. term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement