> The immediate thing that strikes me is that "127.0.0.1" should be {127,0,0,1}. In gen_tcp (erlang in general) the address is a tuple not a string. This is not correct -- gen_tcp supports string as well as tuple for dotted ip address specification V.