Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • Announcements

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7.1 for MC 1.7.10, 1.10.2, 1.11.2 & 1.12.1. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)

Forums

  1. OpenComputers

    1. Announcements

      OpenComputers official announcements.

      119
      posts
    2. Feedback

      Tell us what you think.

      327
      posts
    3. IRC

      #OC channel discussion
      irc.esper.net #oc

      26
      posts
  2. Code Central

    1. Support

      Ask for support from the OpenComputers community

      2785
      posts
    2. Showcase

      Showcase what you have created for OC. No 'malware' or other junk!

      1739
      posts
    3. Tutorials

      Help other users out. Please no 'false tutorials'

      99
      posts
  3. Addons & More

    1. Addons Mods

      Show off your OC addons mods

      198
      posts
    2. Architectures

      Discussions for Architectures

      172
      posts
    3. OpenEngineering Task Force

      Discussion board for the OETF documents

      63
      posts
  4. General

    1. Lounge

      Just lounge around or have an open discussion.

      290
      posts
    2. Forum Games

      Fight boredom!

      62
      posts
    3. Showcase

      Show off your creations! (not for your programs)

      122
      posts
    4. Servers

      A place to advertise your servers

      133
      posts
  5. Archives

    1. Public Archives

      OpenComputers public archive forum

      8
      posts
  • Topics

  • Posts

    • Check if you can connect to your server from a remote host. A firewall might be blocking the connection. Keep in mind that your host may be blacklisted in the configuration file by default (if you're trying to connect to localhost, for instance). Wrap handle:write("1234") into print (like print(handle:write("1234"))) so that if there were any errors, they would be printed, not ignored. Also, try to os.sleep a while before writing to or reading from the socket. Perhaps the socket doesn't get enough time to establish the connection. Call handle.stream.socket.finishConnect() to check if the socket is connected.
    • 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: 1.7.1.1127-universal MC version: 1.7.10 Thanks in advance for help
    • I have finished this request roughly halfway, although I was wondering if your server used a currency accessible by Open Computers. If so I could integrate that as a part of the program's scope. However if it does not, you will manually have to enable and disable outputs once you receive payment or lack there  of.
        If you do have a "digital" currency in place, please let me know which mod it is based on so that I can integrate it properly, if not I will continue developing this as a semi-automated system. Additionally... how big is this network?
    • What is the problem your are trying to fix?
    • A tip. Look into shell.execute
  • Popular Contributors

×