You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
除了 socat 无需额外依赖,在 Debian 和 openwrt 上测试正常,理论上适用于各种 linux 发行版。
把上面代码保存为脚本,执行下面 socat 命令则启动一个伪 http 服务,可以用于查询 ip
查询 ipv4 ,可以直接设置接口为 http://<局域网 ipv4 地址>:18088
ipv6 通过接口查询比较麻烦,因为 ddns-go 只会尝试 tcp6 连接,建议通过命令查询:
wget -O - http://<局域网 ipv4 地址>:18088
Openwrt procd 服务示例:
Systemd 服务示例:
Beta Was this translation helpful? Give feedback.
All reactions