Forward to Any Address

Not just localhost - forward to any device on your network.

Forward to LAN Devices

By default, Drip forwards to 127.0.0.1. Use -a to forward to any address:

Forward to another machine on your network:

bash
drip http 8080 -a 192.168.1.100

Forward to Docker Containers

Expose a container by its IP address:

bash
drip http 3000 -a 172.17.0.2

Or use the container name (if DNS is configured):

bash
drip tcp 5432 -a db-container

Find container IP:

bash
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name

Forward to Specific Interface

Bind to a specific network interface:

bash
drip http 3000 -a 10.0.0.5

Forward to mDNS Hostnames

Use .local hostnames for devices on your network:

bash
drip http 80 -a raspberrypi.local
drip tcp 22 -a mynas.local

Common Use Cases

ScenarioCommand
Local developmentdrip http 3000
Home NASdrip http 5000 -a 192.168.1.50
Docker containerdrip http 8080 -a 172.17.0.3
Raspberry Pidrip http 80 -a 192.168.1.100
VM on hostdrip http 3000 -a 10.0.2.15
mDNS devicedrip http 8080 -a mydevice.local

Combining with Other Options

Forward to LAN device with custom subdomain and background mode:

bash
drip http 8080 -a 192.168.1.100 -n mynas -d

Forward to Docker with IP restriction:

bash
drip tcp 5432 -a 172.17.0.2 --allow-ip 10.0.0.0/8