Is it kind of routing? not really. It's a simple thing programs can do when opening a port or connecting to a port.
Edit:
Do you have netcat?
nc -l 192.168.0.2 -p 80
This would open the port 80 only on 192.168.0.2 and nothing else.
And on Unix this
nc -l -p 80
would open port 80 on all interfaces (any).