Access localhost from your phone!


Updated on Feb 1, 2024
· 2 mins read
update guide

Pinggy now supports QR codes within the terminal!


Summary

  1. Start a Pinggy tunnel and press u or c to see QR code.
  2. Press Esc to hide QR code.
  3. Or use qr or aqr as username to always show QR in the terminal:
    ssh -p443 -R0:localhost:8000 qr@a.pinggy.io
    
    ssh -p443 -R0:localhost:8000 aqr@a.pinggy.io
    
  4. You can pass your token along with qr by appending them with the + symbol:
    ssh -p443 -R0:localhost:8000 token+qr@a.pinggy.io
    

Pinggy can print QR codes for the tunnel URLs in ASCII or Unicode. The instructions for both are as follows.

ASCII

Start a regular Pinggy tunnel:

ssh -p 443 -R0:localhost:8000 a.pinggy.io

Press c to show the QR Code. It will display the QR Code representing the tunnel URL in ASCII form as shown in the screenshot below.

You have the option to utilize the arrow keys to cycle through various URLs and their corresponding QR Codes. To revert to the standard page, press the Esc key.

Press c to display QR-Code in ASCII

The QR Code presented here is crafted using ASCII characters, ensuring compatibility with the majority of terminals. Nonetheless, in instances where terminal windows are smaller, they might not fit optimally. For a QR Code with a more condensed appearance, opt for the Unicode version.

Unicode

For a more compact QR Code, you can choose the Unicode QR option. Simply press u to generate a QR Code displayed using Unicode characters.

Press u to display QR-Code in Unicode

The Unicode QR-Code can easily fit within a 80x25 terminal. But, the terminal must have support for the Unicode character-set.

Always show QR-Code

Pinggy also supports keywords qr and aqr while creating a tunnel to always show the QR codes in the terminal.

Always display QR-Code in TUI
ssh -p443 -R0:localhost:8000 qr@a.pinggy.io

If one wants to pass some other keyword like a token, simply add it with a + symbol:

ssh -p443 -R0:localhost:8000 qr+token@a.pinggy.io

Here qr would produce QR code in Unicode while aqr would produce QR code in ASCII.