Xamarin iOS IPv6 App Store Rejection

后端 未结 3 618
难免孤独
难免孤独 2021-01-21 23:18

We have been building a iOS app that is about Client - Server App. We are using an SQL connection and WCF web services in the iOS app with Xamarin.

SQL Connection Code :

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-22 00:06

    Change your server IP: 10.0.0.0 to the domain name, such as db.test.com, it's Apple's recommended approach.

    string input = "db.test.com";
    IPAddress[] ads = Dns.GetHostAddresses (input);
    string ips = ads[0];
    

提交回复
热议问题