<div>hello~</div><div>I finally made it,sending string to localhost and receive it</div><div>but when I try to send to other computer, it doesn't work</div><div>does my code has problem?</div><div>the source is looks like this</div>
<div>server</div><div>#lang racket</div><div>(define server (tcp-listen 12345))</div><div>(define-values (s-in s-out) (tcp-accept server))</div><div>(read-line s-in)</div><div><br></div><div><br></div><div>client</div><div>
#lang racket ; An echo server</div><div>(define-values (in out) (tcp-connect "159.4.64.153" 12345))</div><div>(print "string" out)</div><div><br></div><div>the client side error is this</div><div>tcp-connect: connection to 59.4.64.153, port 12345 failed (at step 6: No connection could be made because the target machine actively refused it.; errno=10061)</div>
<div><br></div><div>this error is appear as well as when I try to send something while server is not running</div><div><br></div><div>and I also want to know how can I send variables</div><div><br></div><div>could somebody please give me some useful urls or advice?</div>
<div><br></div><div>thanks in advanced</div>