Use Pi as Wireless Access Point AND access that pi like a server

February 20, 2023, 20:47

mudmin

Hi, I'm looking for a point in the right direction. I've followed a bunch of the guides to create a pi access point, but I need some direction on obtaining an IP for the pi that is serving the hotspot. The pi by default seems to create an AP that is subnetted separate from the pi itself. In my ideal world, I would have zero ethernet. Zero internet. Just a pi with Apache and the wifi hotspot allowing others to connect to that apache server.

illegitimate_egg

Your pi would have to completely emulate an access point

illegitimate_egg

and then you'd need some DNS fuckery on top of that

mudmin

Right

mudmin

Well I don't care anything about serving web pages. I'm fine with accessing the Apache server via IP

illegitimate_egg

Apache is a webserver??

mudmin

yes

mudmin

And I don't care about apache in particular. I just want the pi to act as a hotspot and a server

mudmin

I'm doing an HDMI stream but it has a webserver over port 8080 so it basically acts as an apache server

illegitimate_egg

> Well I don't care anything about serving web pages

illegitimate_egg

right

mudmin

I should have said I don't care about serving internet.

illegitimate_egg

ah

illegitimate_egg

ok

mudmin

Basically I just want to be able to connect to a hotspot that gives me an ip of 192.168.1.xxx and from the connected device connect to the pi that is serving

andy_s

that is simple. Just make your pi act as hostapd, run dhcpd & apache listening on all interfaces and done.

mudmin

All interfaces seems to be the key but do you have any point in the right direction of a guide.

andy_s

in respective server config

andy_s

they must listen on 0.0.0.0

andy_s

you can google for that 🙂

mudmin

My server actually does listen on 0.0.0.0.

andy_s

then it should listen on all interfaces

andy_s

and should be accessible from any network

mudmin

it should. It doesn't.

andy_s

ss -tlapn|grep apache