vert.x
vert.x copied to clipboard
How get remote host and port in http sever?
The context.request().remoteAddress() return is remote ip,but I expect is domain name.
otherwize return the port is not remote http port of the request.
How should I do?
you should do a reverse DNS lookup, you can use vertx.createDnsClient() and then use reverseLookup on the client