How can I access my local REST api from my android device?

后端 未结 4 1383
名媛妹妹
名媛妹妹 2021-02-13 14:03

I have a spring REST api running locally on my computer. I would like to consume this api for android development.

Here is my get request:

public stati         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 14:34

    Check your ip:- Steps to check ip (make sure you are connected to internet)

    1. Open command prompt
    2. type ipconfig
    3. Ip is the highlighted one in image below

    Now make your url like this: http://192.168.240.2/index.html

提交回复
热议问题