gRPC Connection Issue in E2B Desktop Docker Container
@jakubno is already working on this.
Since Oct 17, 2025.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 184
- Avg merge
- 12h 6m
- Merged PRs (30d)
- 7
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.