-- -- net_check.lua -- -- Lists each wired modem on this computer and the peripherals on ITS network. -- For pushItems to move items between two things (barrel -> port), they must -- appear under the SAME modem here. If the models barrel and the data center -- ports show up under DIFFERENT modems, they're on separate networks - that's -- the "Target does not exist" error. -- -- net_check -- print("Wired networks this computer can see:") print(string.rep("=", 42)) local found_modem = false for _, name in ipairs(peripheral.getNames()) do if peripheral.getType(name) == "modem" then local ok, wireless = pcall(peripheral.call, name, "isWireless") if ok and not wireless then found_modem = true print("MODEM on '" .. name .. "':") local okn, names = pcall(peripheral.call, name, "getNamesRemote") if okn and names then if #names == 0 then print(" (nothing on this network)") end for _, n in ipairs(names) do print(" " .. n) end else print(" (getNamesRemote failed)") end print(string.rep("-", 42)) end end end if not found_modem then print("No wired modems on this computer.") end print("") print("The models barrel + all IO ports must be under ONE modem.")