【问题标题】:Android and IOS app not working after changing server IP address更改服务器 IP 地址后,Android 和 IOS 应用程序无法正常工作
【发布时间】:2020-07-16 14:04:11
【问题描述】:

我有一个在 laravel 中使用 Android App (Java) 和 IOS App (Swift) 开发的 Web 应用程序。我更改了我的网络服务器,但现在移动应用程序无法运行。

域相同,只是更改了 IP。

我是否因为更改 IP 而面临问题?

【问题讨论】:

    标签: android ios swift xcode android-studio


    【解决方案1】:

    IP 更改可能需要一些时间才能传播。您是否尝试过使用

    ping yourdomain.tld
    

    来自您的终端或internet service? 您也可以使用InetAddress 在您的应用代码中使用InetAddress.getByName("www.yourdomain.tld") 执行此操作(但不要在主线程中运行它)。

    除此之外,我认为有些东西正在缓存旧的 ip 值并返回它。

    【讨论】:

      猜你喜欢
      • 2019-05-01
      • 2013-04-07
      • 2014-01-22
      • 2016-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多