Search the Community
Showing results for tags 'TCP'.
Hello everybody, I'm trying to connect my OC's computer to my tcp server with the first example here http://ocdoc.cil.li/api:internet local internet = require("internet") local handle = internet.open("example.com", 1337) local data = handle:read(10)------------------------- I REMOVED THIS LINE handle:write("1234") handle:close() , but my server don't receive the message. I tested with a "real" socket client, and my server is working well. Is the code shown in link is outdated or i'm missing something ? OC version: 184.108.40.2067-universal MC version: 1.7.10
The Roboserver is a program which lets you control OpenComputers robots remotely, without writing any Lua code, either from your web browser or from a desktop application. You can have your robots dig tunnels, build houses, craft items, and just about anything else a player can do, from any distance! I've got many interesting ideas for how to improve it still, such as adding support for ComputerCraft turtles, allowing robots to save and place structure blueprints, and controlling them from AR glasses added by other mods. If you're as excited about this as I am, help me get there by b
Had some trouble getting a TCP connection between an OpenComputers program (client) and a java program (server), so I thought I could sare this. Here is the lua program: --VARIABLES local event = require("event") local net = require("internet") local term = require("term") local os = require("os") local running = true local con = net.open("192.168.1.100", 6667) --FUNCTIONS function sendString(s) con:write(s) print('Sending ' .. string.sub(s,1,s:len()-1) .. ' to server...') con:flush() end function reciveString() local s = con:read() print('Recived ' .. s .. '