Pete6
Posts: 88
Joined: Sat Nov 24, 2012 4:02 pm

Accessing lighttpd web pages via usb port

Sat May 02, 2020 4:58 pm

I have a Pi 4 with some lighttpd web pages. The site works very well from Windows 10 Chrome or from my phone via my WiFi LAN.

Since the Pi uses USB for power I was wondering if it was possible to access these same web pages via the USB port. How would I do this please?
My favorite programming language is a soldering iron.

ejolson
Posts: 5202
Joined: Tue Mar 18, 2014 11:47 am

Re: Accessing lighttpd web pages via usb port

Sat May 02, 2020 5:24 pm

Pete6 wrote:
Sat May 02, 2020 4:58 pm
I have a Pi 4 with some lighttpd web pages. The site works very well from Windows 10 Chrome or from my phone via my WiFi LAN.

Since the Pi uses USB for power I was wondering if it was possible to access these same web pages via the USB port. How would I do this please?
The main technique is to run the USB-C port of the 4B in device mode to emulate a network adapter and transfer all the web pages through USB. Note that this will be roughly a factor of five slower than using the built-in gigabit Ethernet port. More information is at

viewtopic.php?f=36&t=245810

Pete6
Posts: 88
Joined: Sat Nov 24, 2012 4:02 pm

Re: Accessing lighttpd web pages via usb port

Sat May 02, 2020 5:47 pm

Thank you. I shall try the solution. Speed is not so much a problem but I will see what testing brings.

Thanks again.
My favorite programming language is a soldering iron.

Return to “Beginners”