Skip to content

gRPC Connection Issue in E2B Desktop Docker Container #114

Description

@boqiny

When I launch the grpc server and client both in the e2b docker terminal (localhost), it works properly. But what if I want to reach that from my local computer? I see a related internet access doc: https://e2b.dev/docs/sandbox/internet-access, but this is for https. For gRPC, the return url (e.g. {sanbox-id}.e2b.app) cannot be curl or pinged. And I do not know how to send a request to that from local computer. But for 'localhost' inside the e2b container, it works.

process = desktop.commands.run("python grpc_server.py", background=True)

time.sleep(10)

grpc_host = desktop.get_host(50051)
print(f"Connecting to gRPC server at {grpc_host}")

Any thought on this? Now sure how 'get_host' handling the network traffic...

Thanks for the help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DesktopbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions