I don't think that you can. You might be able to do it if you used sockets by binding to a specific interface.
This would be a very bad idea because it would tie your app to a given IP address.
Generally you shouldn't care.
If you're using a service which authenticates by IP address, just add all of your server's IPs to it.
Mark