Skip to content

[Codespaces/JavaScript] localhost is not accessible from a polyglot notebook within GitHub Codespaces environment #3600

@sinedied

Description

@sinedied

Describe the bug

Please provide as much information as you can.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro) Debian GNU/Linux 11 (bullseye) [devcontainer/Codespaces]
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

image

I have a JS notebook running in Codespaces. When I try fetching any URL through localhost from the notebook, it does not connect.
I can confirm the server is running, as running curl http://127.0.0.1:11434 in a terminal works fine.
image

Is there anything I'm missing, or is this maybe related only to devcontainer/Codespaces environments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions