mss0
V2EX  ›  问与答

App 的网络请求,使用域名会失败,直接使用 ip 就正常,有遇到过的么?

  •  
  •   mss0 · Apr 26, 2018 · 1919 views
    This topic created in 3024 days ago, the information mentioned may be changed or developed.
    网络请求的 url 使用的域名,在 wifi 下正常,4G 网络下就不行了,改成直接用 ip 则在 4G 和 wifi 下都正常。
    4 replies    2018-04-27 09:23:06 +08:00
    mss0
        1
    mss0  
    OP
       Apr 26, 2018
    各位大神求解怎么处理这种状况~~~
    sunny352787
        2
    sunny352787  
       Apr 26, 2018
    DNS 问题呗,这玩意看运营商刷新 DNS 速度有多快了,你做不了啥的
    LGA1150
        3
    LGA1150  
       Apr 26, 2018 via Android
    www.17ce.com GET 测试
    mss0
        4
    mss0  
    OP
       Apr 27, 2018
    @sunny352787 明白了,现在先在本地做解析,解析不出来就用默认的 ip 地址


    @LGA1150 试了下,确实有的运营商解析不出来 ip 地址
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3217 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:09 · PVG 20:09 · LAX 05:09 · JFK 08:09
    ♥ Do have faith in what you're doing.