How to implement an HTTP server on android

前端 未结 3 1957
时光说笑
时光说笑 2020-12-31 17:10

I\'ve two android applications on same LAN provided by WIFI :

  1. App (A) that open a listening socket on port 8033
  2. App (B) that use HttpClient to access
3条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 17:57

    I was looking for the same solution and found NanoHTTPD - an extremely simple HTTP request handling server class. You can find the source and very easy to understand samples at https://github.com/NanoHttpd

提交回复
热议问题