浪费几天时间还没解决,stackoverflow 翻遍了大部分是说依赖冲突的 难道 tomcat9 的 websocket 不支持联网?
![]() |
1
wysnylc 3 天前
互联网就是个大点的局域网
|
2
Jirajine 3 天前 via Android
盲猜 Host 问题,检查 web 服务器绑定的主机名。
|
3
Joyuce 2 天前
nginx 配置了吗?云服务商解析也需要配置
|
4
VKRUSSIA 2 天前
忘了说,我是用 frp 内网穿透部署于 termux 里的 tomcat,我用外网服务器试了下正常,但是用 frp 内网映射就不行。
我查看 catalina.out 日志发现能触发 onOpen 但是报 java.io.EOFException 异常(错误代码 1006 ) 大佬们帮我康康 frp 配置有没有什么问题: frps.ini [common] bind_port = 7000 log_file = ./frps.log log_level = info log_max_days = 3 vhost_http_port = 8080 ---------------------------- frpc.ini [common] server_addr = 公网服务器 ip server_port = 7000 [web] type = http local_ip = 127.0.0.1 local_port = 8080 custom_domains = 公网服务器 ip remote_port = 8080 [websocket] type = tcp local_ip = 127.0.0.1 local_port = 80 [不知道 tomcat 里的 websocket 端口是多少谷歌了下说是 80] use_encryption = false use_compression = false custom_domains = 公网服务器 ip remote_port = 4567 [这里也不确定该填什么端口] |