如何从 Volley 的响应中获取服务器 IP 地址?

How to get the server IP address from its response with Volley?

有没有办法从其响应中获取服务器 IP 地址?

val stringRequest = StringRequest(Request.Method.GET, url,

    { response ->
        // How can I get the server IP address from here?
    },

    { error ->

    })

我找到的唯一解决方案是要求服务器在响应中包含其 IP 地址。