[erlang-questions] Inets socket_type, what's ip_comm and how order IPvX sockets?

Kenneth Lakin <>
Mon Sep 19 23:40:26 CEST 2016


On 09/19/2016 10:14 AM, Ameretat Reith wrote:
> Can I (in inets:start call) tell I wan't IPv4 sockets?

I'm pretty sure that adding the tuple

{bind_address, {0,0,0,0}}

to the property list in the inets:start call [0] will create an HTTP
server that listens for only IPv4 requests. (Feel free to replace the
IPv4 ANY address with a real address if you only want to listen on a
particular interface.)

I have no idea how to fix your problem with tseung, though.

[0] The prop list is the second argument to the inets:start function.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160919/5c1007c7/attachment-0001.bin>


More information about the erlang-questions mailing list