Jeff Crane writes: > gen_tcp:send(Socket,io:format("hello joe~n")), The second argument to gen_tcp:send is supposed to be a list or a binary or an iolist. The return value of io:format is not a list, a binary or an iolist. Maybe you intended to use io_lib:fwrite(). Matthias