Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr4397 :: Transfer files from desktop to phone with qrcp

Use a QR encoded URL to quickly share a file on your local network

<< First, < Previous, Next > Latest >>

Hosted by Klaatu on Tuesday, 2025-06-10 is flagged as Clean and is released under a CC-BY-SA license.
phone, qr, httpd, netstat. (Be the first).

Listen in ogg, opus, or mp3 format. Play now:

Duration: 00:09:17
Download the transcription and subtitles.

general.

How does it work?

A terminal showing the command, a url and a ascii
          rendered qrcode

qrcp binds a web server to the address of your Wi-Fi network interface on a random port and creates a handler for it. The default handler serves the content and exits the program when the transfer is complete. When used to receive files, qrcp serves an upload page and handles the transfer.

The tool prints a QR code that encodes the text:

http://{address}:{port}/{random_path}
Most QR apps can detect URLs in decoded text and act accordingly (i.e. open the decoded URL with the default browser), so when the QR code is scanned the content will begin downloading by the mobile browser.

(Notes taken from https://github.com/claudiodangelis/qrcp released under the MIT license.

Links


Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?