The order ID and customer IP address are shown in the header of sales documents like invoice, shipment and credit memo to Identify particular customers from their order documents.
Attachment 16118
Here are the steps for How to Add Order ID and Customer IP Address in Invoice in Magento 2