In asp.net I can use Request.UserHostName to get the IP address and then figure out the computer name of the calling user. How can I do this in Wisej?
Also how can I get a list of printers on the client in Wisej?
When I do Application.ServerVariables[“REMOTE_HOST”] all I get back is ::1 same with REMOTE_ADDR.
All the server variables are available here: Application.ServerVariables.
UserHostName is Application.ServerVariables[“REMOTE_HOST”]
UserHostAddress is Application.ServerVariables[“REMOTE_ADDR]
We should probably add the HttpRequest.User* properties to Wisej.Base.Application. Will log an enhancement. The properties end up returning the standard server variables anyway.