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.100Forward to Docker Containers
Expose a container by its IP address:
bash
drip http 3000 -a 172.17.0.2Or use the container name (if DNS is configured):
bash
drip tcp 5432 -a db-containerFind container IP:
bash
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_nameForward to Specific Interface
Bind to a specific network interface:
bash
drip http 3000 -a 10.0.0.5Forward to mDNS Hostnames
Use .local hostnames for devices on your network:
bash
drip http 80 -a raspberrypi.local
drip tcp 22 -a mynas.localCommon Use Cases
| Scenario | Command |
|---|---|
| Local development | drip http 3000 |
| Home NAS | drip http 5000 -a 192.168.1.50 |
| Docker container | drip http 8080 -a 172.17.0.3 |
| Raspberry Pi | drip http 80 -a 192.168.1.100 |
| VM on host | drip http 3000 -a 10.0.2.15 |
| mDNS device | drip 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 -dForward to Docker with IP restriction:
bash
drip tcp 5432 -a 172.17.0.2 --allow-ip 10.0.0.0/8