Added conditional to check if IP env variable is already defined and uses it.

Signed-off-by: Alessandro D'Aquino (elara) <alex@midokura.com>
Merge pull request #3 from midokura/dyn_api_ip

Thanks!