设置账号密码和端口 /conf/autoload_configs/event_socket.conf.xml
<configuration name="event_socket.conf" description="Socket Client">
<settings>
<param name="nat-map" value="false"/>
<param name="listen-ip" value="0.0.0.0"/>
<param name="listen-port" value="8021"/>
<param name="password" value="123456"/>
<!-- <param name="apply-inbound-acl" value="lan"/>-->
<param name="apply-inbound-acl" value="loopback.auto"/>
<!--<param name="stop-on-bind-error" value="true"/>-->
</settings>
</configuration>
设置loopback访问规则: /conf/autoload_configs/acl.conf.xml
<configuration description="Network Lists" name="acl.conf">
<network-lists>
<list default="allow" name="允许所有IP">
<node host="0.0.0.0" mask="0.0.0.0" type="allow"/>
</list>
<list name="loopback.auto" default="allow">
<node type="allow" cidr="192.168.1.1/28"/>
</list>
</network-lists>
</configuration>
来源:oschina
链接:https://my.oschina.net/u/4417586/blog/4255416