vert.x icon indicating copy to clipboard operation
vert.x copied to clipboard

How get remote host and port in http sever?

Open fluagen opened this issue 9 years ago • 1 comments

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?

fluagen avatar Nov 13 '17 10:11 fluagen

you should do a reverse DNS lookup, you can use vertx.createDnsClient() and then use reverseLookup on the client

vietj avatar Nov 15 '17 21:11 vietj