Page 1 of 1

Website access via Wifi but not Ethernet

Posted: Tue Feb 18, 2020 7:11 am
by jakobheuer
Hello,
I am trying to add a very specific config to my Raspberry Pi. I have a Website which controlls an electronic score board. The Website hosted on the raspberry pi should be accessible via its own Wifi (Working) but not accessible via the network to which its connected via Ethernet. But i still need the ethernet connection for Internet so that users in the Raspi Wifi can browse the web.
Is there a way to achieve this? Currently it can do all the things but the Website can be reached via ethernet and i want to stop that from happening.

TL;DR
Raspi Website should be accessible via its own Wifi but not ethernet. But the raspberry still needs internet access via ethernet.

Thank you in advance.

Re: Website access via Wifi but not Ethernet

Posted: Tue Feb 18, 2020 12:14 pm
by topguy
Somewhere in the config for the web-server there is a setting telling it which IP address to "listen" on.
If that setting is "0.0.0.0" the service listens on all available network interfaces. eth0, wlan0 etc.

If that setting is just the IP-address of one of the interfaces then it will only listen on that interface.