Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cog with IPv6 #1735

Closed
Xe opened this issue Jun 13, 2024 · 2 comments · Fixed by #1748
Closed

Use cog with IPv6 #1735

Xe opened this issue Jun 13, 2024 · 2 comments · Fixed by #1748

Comments

@Xe
Copy link

Xe commented Jun 13, 2024

I'm trying to use cog in an IPv6 native network (Fly.io private networking) and cog doesn't seem to listen over IPv6:

root@e7842609f2d408:/src# curl http://[::1]:5000/ready
curl: (7) Failed to connect to ::1 port 5000 after 0 ms: Couldn't connect to server

How do I make cog listen on IPv6 so I can debug cog services directly in my private network?

@mattt
Copy link
Contributor

mattt commented Jun 18, 2024

Hi @Xe. I think this might be as straightforward as changing the configured host in our FastAPI app from 0.0.0.0 to ::.

I made this change in #1748. Could you please try this out and let me know if that works for your use case?

@mattt
Copy link
Contributor

mattt commented Jun 24, 2024

@Xe Cog v0.9.10 adds support for a --host argument when running the HTTP server. Following the instructions on this doc, you should be able to run Cog models on IPv6 hosts. Please let me know how this works for you 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants