I am developing an Android app with an integrated webserver; in my handler (implements HttpRequestHandler
) I want to retrieve the remote IP address. How can I do that ?
public abstract class MyHttpRequestHandler implements HttpRequestHandler {
@Override
public void handle(HttpRequest request, HttpResponse response,
HttpContext httpContext) throws HttpException, IOException {
// retrieve remote IP here...