I want to add the client’s ip address or hostname to the ticket (or both fields are better). I do not understand php, but I saw a similar topic on the forum, but still did not understand how to implement it. https://forum.osticket.com/d/7477-also-posting-the-workstation-name Help please sort this out, can make a small guide on githab? Or maybe it already is. I would like to understand step by step what to do, what module to install, and where to write the function. Thank you!
ArtTom555
Simply add Custom Fields to your Ticket Details Form or a Custom Form. Then your users can input their IP.
I will say that the system already tracks the User's IP if they create the Ticket from the Client Portal. It shows up under their name in the Ticket header.
Cheers.
Unfortunately, this is not suitable, we need an automated solution, that is, most ticket are registered via the support mail
Then that is not possible. Other than having the User include their IP in the email. You can't detect a User's IP from the mail headers. Mail headers will contain the trace of connections but the source could be a central server, etc. and not the User's real IP. You very rarely get a User's real IP in the mail headers unless it's a custom header that you add yourself. Even then, osTicket would not know what to do with that; it would simply be ignored.
What about the X-Originating-IP field? I find it in every letter within our organization. I thought you could use it and it is the IP address of the employee, thanks for your answers
Not from email. That will be used via Client Portal but not via email.
KevinTheJedi I understand, thank you