Connecting to Web Sockets with forwarded port.

This is for discussing general topics about how to use VirtualBox.
Post Reply
MrDaniel
Posts: 1
Joined: 10. Dec 2019, 05:00

Connecting to Web Sockets with forwarded port.

Post by MrDaniel »

Hello,

I have a a docker container with a Django app, it is all running in Virtual Box on an MACOS host and Alpine Linux guest.

The port is opened using NAT on port...
Protocol   Host IP   Host port   Guest IP   Guest Port
TCP        0.0.0.0   8001                   8001
If i run the docker container locally, i can connect to H T T P and WebSocket endpoints.

When i run the container in the VirtualBox environment i am able to connect and get a response from the H T T P endpoint. However, when i try to get the websocket connection it responds with 404.
Handshake status 404 Not Found
### closed ###
Are there any other considerations that should be taken into account?

Regards,
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Connecting to Web Sockets with forwarded port.

Post by socratis »

Docker is not supported on these VirtualBox forums/channels, they have their own Docker support channels. If you are having this problem with a standalone version of VirtualBox (after a complete uninstallation of Docker), then we can continue this discussion.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply