Hey guys.. how can i get the remote address of a c...
# ktor
a
Hey guys.. how can i get the remote address of a caller in ktor?
a
Copy code
val RequestConnectionPoint.url get() = "$scheme://$remoteHost:$port"

// then you can type
request.origin.url
👍 1
Don't know if that is what you are looking for
a
Thanks .. that may work but Application.call doesn’t contain that
Copy code
call.request.origin.uri.???
a
Something like that
👍 1
a
cools .but doesn’t have all the info.. but i’ll explore further.. thanks
a
call.request.origin.url
// not
origin.uri
Use the extension property provided
👍 1