xbzstudio / Timeless-Sydney

好用的New Bing web客户端,功能众多~
https://xbzstudio.github.io/Timeless-Sydney
MIT License
661 stars 168 forks source link

在其他电脑或者手机上,无法通过 公网ip/域名+端口/webui 访问 #42

Open G-LJDS2022 opened 1 year ago

G-LJDS2022 commented 1 year ago

在其他电脑或者手机上,无法通过 公网ip/域名+端口/webui 访问

edison0817 commented 1 year ago

一个电脑上部署,我测试其他位置通过ip+端口,都可以访问的。比较简单的办法是用设置nginx反向代理,用一个网址全部搞定。

sprdlh commented 1 year ago

我的是可以访问,但是一直卡在 Loading for NewBing

edison0817 commented 1 year ago

卡loading for newbing这里是和通信端口的协议有关(涉及到ws://和wss://),如果你的主网页ssl加密是https的话,api端口最好也是用一个域名反代并设置ssl。

sprdlh commented 1 year ago

您发来的邮件我已经收到...

FloraLunamia commented 1 year ago

卡loading for newbing这里是和通信端口的协议有关(涉及到ws://和wss://),如果你的主网页ssl加密是https的话,api端口最好也是用一个域名反代并设置ssl。

请问一下,内网也出现这种状况了如何解决

sprdlh commented 1 year ago

我的情况是本机部署,然后直接打开静态网页,设置好127.0.0.1+端口就可以正常使用,但是内网或者用域名去访问就会一直loading for newbing。

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月7日(星期三) 下午3:57 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [xbzstudio/BingAI-Client] 在其他电脑或者手机上,无法通过 公网ip/域名+端口/webui 访问 (Issue #42)

卡loading for newbing这里是和通信端口的协议有关(涉及到ws://和wss://),如果你的主网页ssl加密是https的话,api端口最好也是用一个域名反代并设置ssl。

请问一下,内网也出现这种状况了如何解决

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

FloraLunamia commented 1 year ago

我的情况是本机部署,然后直接打开静态网页,设置好127.0.0.1+端口就可以正常使用,但是内网或者用域名去访问就会一直loading for newbing。 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月7日(星期三) 下午3:57 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [xbzstudio/BingAI-Client] 在其他电脑或者手机上,无法通过 公网ip/域名+端口/webui 访问 (Issue #42) 卡loading for newbing这里是和通信端口的协议有关(涉及到ws://和wss://),如果你的主网页ssl加密是https的话,api端口最好也是用一个域名反代并设置ssl。 请问一下,内网也出现这种状况了如何解决 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

一样的。。

edison0817 commented 1 year ago

关于内网访问你们检查以下内容:1、如果只是本机访问,什么都用改,用默认配置就可以了。2、局域网访问的话,需要修改static/js/setting.js。用记事本可以打开,host:'127.0.0.1:80',改成host'你们主机的ip地址加端口'。不然局域网其他客户端肯定是卡loadbing,因为它访问的地址是127.0.0.1是它自己。

sprdlh commented 1 year ago

基于 哔哩哔哩 up BV1LT411t7xe 部署的 bing,【NewBing客户端:无需魔法,召回Sydney,突破20句】 - 飘在云端 (0z.gs)参考了这个链接,修改host,htppsmode改为true,然后外网通过域名就可以正常访问了,不用修改index的代码。

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月7日(星期三) 下午4:36 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [xbzstudio/BingAI-Client] 在其他电脑或者手机上,无法通过 公网ip/域名+端口/webui 访问 (Issue #42)

关于内网访问你们检查以下内容:1、如果只是本机访问,什么都用改,用默认配置就可以了。2、局域网访问的话,需要修改static/js/setting.js。用记事本可以打开,host:'127.0.0.1:80',改成host'你们主机的ip地址加端口'。不然局域网其他客户端肯定是卡loadbing,因为它访问的地址是127.0.0.1是它自己。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

FloraLunamia commented 1 year ago

关于内网访问你们检查以下内容:1、如果只是本机访问,什么都用改,用默认配置就可以了。2、局域网访问的话,需要修改static/js/setting.js。用记事本可以打开,host:'127.0.0.1:80',改成host'你们主机的ip地址加端口'。不然局域网其他客户端肯定是卡loadbing,因为它访问的地址是127.0.0.1是它自己。

已经改成了192.168.X.X:80,按照无线网卡的IP填的,两个端都上不了 #