jakobheuer
Posts: 1
Joined: Tue Feb 18, 2020 7:04 am

Website access via Wifi but not Ethernet

Tue Feb 18, 2020 7:11 am

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.

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Website access via Wifi but not Ethernet

Tue Feb 18, 2020 12:14 pm

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.

Return to “Networking and servers”