mvbasov / lWS

lightweight Web Server (lWS) for Android
GNU General Public License v3.0
76 stars 19 forks source link

option to listen only on 127.0.0.1 #12

Open xandro0777 opened 2 years ago

xandro0777 commented 2 years ago

Hi, I want to serve a bunch of html pages that should be accessible only on 127.0.0.1

Could you add an option to listen only there?

mnalis commented 8 months ago

As a workaround, it will do that (see https://github.com/mvbasov/lWS/issues/3) if you click start while you are offline (i.e. with WiFi and mobile data disabled). Then, after lws is started and listening only on 127.0.0.1, you can go online again, and it will still be restricted only on 127.0.0.1 (until you stop and start it again).

But an option to restrict it to always work only on 127.0.0.1 would be nice (so people don't expose private files by simple mistake / wrong click)