Crystal: Server inside vm can't be reached on the host

Created on 3 Apr 2019  路  2Comments  路  Source: crystal-lang/crystal

I tried to make a simple tcp server on linux on virtualbox on windows. I tested it on firefox inside the vm and it worked, but it didn't work on the host neither with port forwarding nor bridged router.

I also tried the crystal http api, and hyper-v. Nothing worked.

I tried serving things to the host with nginx, js (node) and c and all of that worked. I also tried crystal on wsl and it worked.

My intention was to have a crystal virtualbox vm but I couldn't because I couldn't reach the server on the host.

Thanks for listening!

question

Most helpful comment

This is a question for the forum

All 2 comments

Take sure that the server is listening on all network interfaces (0.0.0.0 or ::).
On what address/port is listening the server?

This is a question for the forum

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nabeelomer picture nabeelomer  路  3Comments

asterite picture asterite  路  3Comments

will picture will  路  3Comments

Papierkorb picture Papierkorb  路  3Comments

cjgajard picture cjgajard  路  3Comments