pot-desktop icon indicating copy to clipboard operation
pot-desktop copied to clipboard

[BUG]: title ollama本地部署无法变更本地请求地址

Open Lance-He opened this issue 9 months ago • 2 comments

Description

ollama本地部署中,只能使用http://localhost:11434 地址,无法使用局域网下其他IP地址

Reproduction

http://localhost:11434

Platform

Windows

System Version

win10 22H2

Window System (Linux Only)

None

Software Version

3.0.6

Log File

No response

Additional Information

Image 手动编写一个端口转发工具后才可以正常使用。

Lance-He avatar Feb 13 '25 02:02 Lance-He

Description

ollama本地部署中,只能使用http://localhost:11434 地址,无法使用局域网下其他IP地址

Reproduction

http://localhost:11434

Platform

Windows

System Version

win10 22H2

Window System (Linux Only)

None

Software Version

3.0.6

Log File

No response

Additional Information

Image 手动编写一个端口转发工具后才可以正常使用。

应该是 Ollama 默认不允许局域网链接,可以试试在 Windows 上添加2个环境变量 OLLAMA_HOST 为 0.0.0.0 OLLAMA_ORIGINS 为 * 然后重启 Ollama 服务应该就可以接受局域网链接了

Bader-CN avatar Mar 13 '25 08:03 Bader-CN

Description

ollama本地部署中,只能使用http://localhost:11434 地址,无法使用局域网下其他IP地址

Reproduction

http://localhost:11434

Platform

Windows

System Version

win10 22H2

Window System (Linux Only)

None

Software Version

3.0.6

Log File

No response

Additional Information

Image 手动编写一个端口转发工具后才可以正常使用。

应该是 Ollama 默认不允许局域网链接,可以试试在 Windows 上添加2个环境变量 OLLAMA_HOST 为 0.0.0.0 OLLAMA_ORIGINS 为 * 然后重启 Ollama 服务应该就可以接受局域网链接了

我认为不是这个问题,通过命令行可以正常走tailscale局域网访问,但是通过应用不行 Image

PhiFever avatar Aug 09 '25 05:08 PhiFever