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

PcStack

Members
  • Content Count

    8
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by PcStack

  1. 14 hours ago, SKM GEEK said:

    Hey. I just installed the server and browser programs, but when i run the server program the computer freezes, and when i request an ip from the browser, it freezes too. Am i doing something wrong?

    The server freezing is completly normal. I have no idea what's wrong with the browser you NEED an internet card AND wifi card to browse and host servers A screenshot would be helpful, and specs of server and browsing pc.

    Edit: internet card not nessecary for server. You have to put the code after the / from the pastebin website into the server program to replace the last argument from the third to last line

  2. On 8/31/2018 at 7:30 PM, Molinko said:

    You should use local variables to avoid future headache.

    
    local component = require("component")
    local modem = component.modem
    local event = require("event")
    
    print("Connent to which IP?")
    local port = tonumber(io.read("*n")) -- # convert the string representation of a number to an actual number value
    modem.open(port) -- # modem.open opens ports not IPs
    modem.broadcast(port, "packets")
    local message = select(5, event.pull("modem_message")) -- # get all event data after the 5th element/return value
    
    os.execute("pastebin run " .. message)

    Ik this but i will manipulate them to act like ips

    thank you

     

  3. This program enables you to make servers useful like IRL web servers.

    Client Minimum requirements

    relay

    network card

    internet card

    apu

    Server Minimum Requirements;

    Wireless network card 

    Configured serverside program

     

    Put your paste code in the server program or else it will say Hello.

    I did this cause nobody else had and I thought it would be useful

    Server paste code: B7b27pc2

    Browser paste code: vkL422Sz

    I am new to OC and this is my first program

     

  4. I also need help doing it with a wireless modem message for a browser program...

    and pastebin run here is my code;

    component = require("component")
    modem = component.modem
    event = require("event")
    print("Connent to which IP?")
    ip = io.read("*n")
    modem.open(ip)
    modem.broadcast(ip, "packets")
    local _, _, from, port, _, message = event.pull("modem_message")
    message = tostring(i)
    local command = table.concat({"pastebin run message"})
    os.execute(command)

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.