开发者

(iphone) How to change the server ip without shipping an updated application?

开发者 https://www.devze.com 2023-03-07 04:50 出处:网络
My application talks to my server and currently server\'s ip is embedded in the client application. For any reason, I might have to change the server\'s location(and it\'s ip).

My application talks to my server and currently server's ip is embedded in the client application.

For any reason, I might have to change the server's location(and it's ip).

With current setup, I'll have to ship a new version with new server ip embedded.

I guess I could get a domain name and embed the domain name in the app, so that I can开发者_JS百科 dynamically change the server machine(with domain name fixed).

Is there other options I could take?

Thank you


You should definitely use DNS. Get a domain name, they are very inexpensive.

If for some reason you absolutely refused, you could devise a way to send a push notification to the phone for IP changes, but if a user has notifications off then you are out of luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消