Api request fail

My application works perfectly in my WiFi but when i create an apk and try to run it from different networks i get error 403 invalid ip message and it can’t reach my api! Can someone help me with this issue?