Hi Sanjay Bhakuni,
Thank you for posting your question in the Microsoft Q&A forum.
In general, we could use the command provided by Jose Benjamin Solis Nolasco to get message tracking log for on-prem emails and check the client IP.
However, the email may be delivered via load balance or any other device before receiving by Exchange server. We also suggest you to add and check the parameter “OriginalClientIp”, which display the ipv4 or ipv6 address of the original client.
Get-transportservice| Get-MessageTrackingLog -MessageSubject “email_subject” |sort-object timestamp | fl Timestamp,ClientIp,OriginalClientIp,Sender,Recipients,EventID,Source
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.