Hi
I was running the example tcp server and client on port 9097. I unblocked the port but it still won't run for the client. I am running both scripts from my pc. Is that wrong? Here is the code
R E B O L [ Title: "Example TCP Server & Client" ]
either all [args: system/options/args find args "-c"] [
port: open/direct/lines/no-wait tcp://localhost:9097
args: true
][
listen: open/direct/lines/no-wait tcp://:9097
wait listen
port: first listen
args: false
]
view/new win: layout/size [
backdrop either args [green][red]
text "type a message then press [ENTER] to send to the green window"
entry: field [ insert port entry/text focus entry ]
display: info "" 300x200
button "quit" [
close port
if not args [close listen]
unview halt
]
] 320x300
win/offset: 0x0
show win
forever [
wait port
foreach msg any [copy port []] [
append display/text join msg newline
]
show display
]