dzove855 / Bash-web-server

A purely bash web server, no socat, netcat, etc...
MIT License
934 stars 46 forks source link

Accept requests in lan #9

Closed iaGuoZhi closed 1 year ago

iaGuoZhi commented 1 year ago

Currently the web server can only be accessed in the same machine, I want to support accessing from lan without netcat and other tools. Any ideas about it?

dzove855 commented 1 year ago

The Webservee can be used putside the lan, you just need to specify the bind address with the variable:

export BIND_ADDRESS=0.0.0.0 and then start the script

iaGuoZhi commented 1 year ago

Exactly, Thanks!