we want to display ip with ticket in hesk admin dashboard

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
neerajallen
Posts: 1
Joined: Tue May 17, 2022 9:28 am

we want to display ip with ticket in hesk admin dashboard

Post 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
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
afeer
Posts: 24
Joined: Thu Jul 23, 2020 7:15 am

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

Post by afeer »

it records proxy ip's not the system IP's. is there any way to log system IP while using proxy server?
shddcit
Posts: 60
Joined: Wed Mar 30, 2022 3:54 pm

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

Post 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
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
afeer
Posts: 24
Joined: Thu Jul 23, 2020 7:15 am

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

Post by afeer »

Not working yet after even replacing and trying each and every variable. Please check.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply