I advise that if a local server for testing, all IP are: 127.0.0.1 and in this way you will work for sure.
If the server is public, then no how.
______________________________________________________
Te aconsejo que si es un servidor local para realizar pruebas, todas las IP sean: 127.0.0.1 y de esta forma te funcionara seguro.
Si el servidor es publico, entonces no se como hacerlo.