Changing API server to use self ip