Page 1 of 1

we want to display ip with ticket in hesk admin dashboard

Posted: Tue May 17, 2022 10:04 am
by neerajallen
Dear All


i am stuck with some issue in hesk


we want to display ip with ticket in hesk admin dashboard.


kindly help me

Image

Re: we want to display ip with ticket in hesk admin dashboard

Posted: Wed May 18, 2022 7:19 pm
by Klemen
That is not something supported by Hesk. I recommend hiring a PHP developer for help, they shouldn't have problems fetching the IP address from hesk_tickets table and displaying it.

Re: we want to display ip with ticket in hesk admin dashboard

Posted: Tue Sep 20, 2022 8:49 am
by afeer
it records proxy ip's not the system IP's. is there any way to log system IP while using proxy server?

Re: we want to display ip with ticket in hesk admin dashboard

Posted: Tue Sep 20, 2022 3:09 pm
by shddcit
We also had this when the network administrator increased security after active ddos attacks on the external site of the organization. It was the dns address that was displayed. Now he has fixed it inside the network - the ip addresses are displayed adequately again (the ip address of the computer from which the application was submitted is indicated).
I'm talking about the drop-down menu inside the admin panel, where the email and ip address are shown.
I recommend contacting the administrator of the organization's network

Re: we want to display ip with ticket in hesk admin dashboard

Posted: Tue Sep 20, 2022 4:04 pm
by Klemen
Hesk uses the server 'REMOTE_ADDR' variable as the IP.

To find client IP when proxies are used, you need to:

1. open file /inc/common.inc.php in Notepad++
2. find

Code: Select all

function hesk_getClientIP()
3. below find

Code: Select all

    $server_client_IP_variables = array(
        // 'HTTP_CF_CONNECTING_IP',
        // 'HTTP_CLIENT_IP',
        // 'HTTP_X_REAL_IP',
        // 'HTTP_X_FORWARDED_FOR',
        // 'HTTP_X_FORWARDED',
        // 'HTTP_FORWARDED_FOR',
        // 'HTTP_FORWARDED',
        'REMOTE_ADDR',
    );
4.uncomment (remove // ) in the line of the variable that has the real IP address on your server
5. save and upload the modified common.inc.php file to the server

Re: we want to display ip with ticket in hesk admin dashboard

Posted: Wed Feb 01, 2023 8:16 am
by afeer
Not working yet after even replacing and trying each and every variable. Please check.

Re: we want to display ip with ticket in hesk admin dashboard

Posted: Wed Feb 01, 2023 11:23 am
by Klemen
Upload phpinfo to your server and post a link to it.

You will find the file here:
viewtopic.php?f=13&t=138