v..snow
v..snow

Reputation: 209

How to open rust-rocket server to LAN?

I tried rocket, cargo run, access to http://localhost:8000 and looks well.
However, I failed to access to http://192.168.developing.pc:8000 from other PC in LAN.
I tried http://192.168.developing.pc:8000 in developing PC but was not able to access.

At first I thought it is related to firewall but I was confused because it was not able to access from own machine.

How can I do?

I'm completely not familiar with networking so that I'm not sure if only the executable I built is enough or need other service such as nginx or IIS or something.

I'm developing in windows 10 and want to deploy on ubuntu finally. (ubuntu machine is not ready)

Thank you.

Upvotes: 3

Views: 1550

Answers (1)

Jitendra
Jitendra

Reputation: 69

export ROCKET_ENV=stage ;cargo run

Upvotes: 1

Related Questions