The original post: /r/homenetworking by /u/dustartt on 2025-03-29 05:53:50.

Hello guys, I bought additional IP addresses from my dedicated server provider. When I add them using sudo ip addr add and check with ip a | grep <my-ip-address>, I can see all of them added.

But here’s the problem: when I run something like Plex or any application in Docker, it always uses the main (primary) IP address. I want to be able to assign a specific IP address to each process or Docker container, not just the default main IP.

Linux always defaults to using the primary IP for outgoing traffic. Even if I block specific ports on an IP address, the system still uses the first IP as the default for everything.

Is there a way to assign different IPs to different applications or Docker containers, so they don’t all just use the main one?