一、修改静态ip 地址
vi /etc/sysconfig/network-scripts/ifcfg-eth0
参考:https://blog.csdn.net/u014466635/article/details/80284792
(其他)修改服务配置ip地方:
一、获取房间key name 值:
apps/current_app/main.js
apps/current_app/samplertcservice.js
1 2 |
icsREST.API.init('5fc8ae4b2fe6a8b65e10a988', 'KOxjtPXYspKPcpqw+VOspMtOJ7Zft5sv6ucvTLZYGGf+rk7aIlTh2n/csgS8uiRQ8Tys+aq+XQY2jbX3nGJFQtA5DP9XQfciXLx03+eMi38adODgoIq9yU9S+z+55k/WF31lGIY2MqFhCvNHfrM52yRG6xwjhwo4qp1yGxya4G8=', 'https://localhost:3000/', false); |
二、
1.打开webrtc_agent/agent.toml目录,设置你服务器的公网IP,修改 [webrtc] 部分的 network_interfaces
1 |
{name = "eth0", replaced_ip_address = "你的公网IP"}(需要把 name 设置为网卡实际名称,replaced_ip_address 设置为服务器公网 IP 地址) |
2. 编辑 portal/portal.toml:修改 [portal] 部分里的 ip_address 为服务器公网 IP 地址
3./etc/rc.local 最后一行
4./etc/hosts 的ip