• Erlang code IPv6
    $ erl
    
    1> gen_tcp:listen(5222, [inet, {ip,{0,0,0,0}}]).
    {ok,#Port<0.484>}
    
    2> gen_tcp:listen(5222, [inet6, {ip,{0,0,0,0,0,0,0,0}}]).
    {error,eaddrinuse}
    
    $ netstat -nl | grep 5222
    tcp        0      0 0.0.0.0:5222            0.0.0.0:*               LISTEN

Replies (5)