#StackBounty: #networking #wireless-networking #dns #bluetooth How does expressjs serve website over bluetooth without internet?

Bounty: 100

Trying to make an app that would work for clubs that meet in locations without internet or wifi (ie church basements).

I found this question and answer, but found no hope https://stackoverflow.com/questions/10502645/serving-a-local-website-via-bluetooth-to-a-cellphone-without-using-the-internet since the top answer was super high level from 2011.

I then found this from 2014
https://discussions.apple.com/thread/4308091

This part worked:

You need to make it work, by assigning blutooth PAN a
manually assigned ip address.

192.168.2.1 subnet 255.255.255.0 and in router address field 192.168.2.1, provide DNS as 8.8.8.8 and second dns 8.8.4.4. Of course enable the internet sharing beforehand.

My Mac was serving on localhost:9190 and I was able to go to http://macname.local:9190 to hit my website where macname is what showed up in my “Sharing” system settings when doing Internet Sharing from Bluetooth PAN to computers using Bluetooth PAN.

I celebrated this working, but I have no idea what the DNS bit is for, given I never type those numbers. What am I doing manually that makes this work? Ensuring that the ip and router are the same address? I tested this with zero internet (wifi off) on my laptop. Really just looking to understand why/how this works


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.