Open
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.
Metadata
Metadata
Assignees
Labels
No labels