Skip to main content

A simple magic packet forwarder

Project description


Pisten (Pi + Listen) is a simple port listener that will forward valid wake-on-lan packets to the broadcast IP address. Pisten is best suited for use on always-on, low-power devices, such as the Raspberry Pi.

Some routers do not allow port forwarding to the broadcast IP address which necessitates the use of this program. Also, it is generally safer to filter out unwanted packets before forwarding to the broadcast IP.


You can install pisten as a python package:

python3 -m pip install pisten

Or you can clone this repository:

git clone


On linux, you can use

nohup pisten &

to run the server. By default, the server listens on port 1729 and forwards to

You can specify what port to listen to and what IP address/port to forward to:

pisten -L 3141 -F 0 -I

In this case, we are (-L)istening on port 3141, (-F)orwarding to port 0 and (-I)P address

Set up port forwarding

All routers can be configured to forward packets from specific ports to specific devices on your network. You will want to forward a public UDP port of your choice to port 1729 (or whatever port you specify) of the IP address of your server. You may want to consider creating a DHCP reservation for your server as well.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pisten-0.2.1.tar.gz (3.0 kB view hashes)

Uploaded source

Built Distribution

pisten-0.2.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page