Base solution for your next web application
Open Closed

ClientName in Auditing/Login #1792


User avatar
0
dphpdv created

Hey there!

We are currently using the official Major Release 1.0 Boilerplate (with template). During our tests we recognized that the Clientinformations (IP-Address and Name) are tracked in the Database (e.g. AbpAuditLogs, AbpUserLoginAttempts). This works fine while debugging on the local machine (localhost). After deploying on a webserver only the IP-Address will be tracked but the ClientName-Column wont be filled out. We tried to figure out how to get access to the ClientName but it seems that boilerplate is acting differently when beeing on localhost or server. Did we missed to setup specific IIS/Boilerplate settings or is per se not possible to track clients-machinenames on a web-deployment?

Thx for any advice! Davy


3 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    A I know, client name (is actually computer name) only available for local requests. So, if you deploy it to the same local network, you will get it. Otherwise, not. So, that's not a problem actually since the important thing is IP address.

  • User Avatar
    0
    dphpdv created

    Thanks for the fast answer! We are using the server for internal busniess and deploy it into our own network and we are unsing a ActiveDirectory LDAP login proccedure as well. For us its mandatory to know the machine's name because we want to use the webserver as error reporting for local installed tools.

  • User Avatar
    0
    hikalkan created
    Support Team

    So, if you can find a way of getting computer name, we can change ABP code.