[racket] networking error[simple server and client]

From: 김태윤 (kty1104 at gmail.com)
Date: Fri Oct 8 07:39:35 EDT 2010

I finally made it,sending string to localhost and receive it
but when I try to send to other computer, it doesn't work
does my code has problem?
the source is looks like this
#lang racket
(define server (tcp-listen 12345))
(define-values (s-in s-out) (tcp-accept server))
(read-line s-in)

#lang racket  ; An echo server
(define-values (in out) (tcp-connect "" 12345))
(print "string" out)

the client side error is this
tcp-connect: connection to, port 12345 failed (at step 6: No
connection could be made because the target machine actively refused it.;

this error is appear as well as when I try to send something while server is
not running

and I also want to know how can I send variables

could somebody please give me some useful urls or advice?

thanks in advanced
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101008/49fdfc75/attachment.html>

Posted on the users mailing list.