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

Time:01-20

Is there any way to get the server IP address from its response?

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

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

    { error ->

    })

CodePudding user response:

The only solution I found is to ask the server to include its IP address inside the response.

  •  Tags:  
  • Related