How to Get Remote Ip from Order Magento 2?

The order contains a Remote IP address field in the sales_order table, the remote_ip field adds the customer system remote IP while they placing an order from the Front end.

Difference Between Order Placed from the Front end Vs Backend:
Remote IP field will be displayed only if the order is placed from the Frontend, for Order placed from the Backend(admin panel) not save the remote IP in the database table.

If Order contains the remote_ip field value, the Order is placed from the frontend otherwise its placed from the back end.

Using Order increment id, You can fetch Order Remote IP address by the below code snippet.

Get Remote IP using passing the Order Increment id to fetch order Remote IP.

Output:  If Order placed from the Front end
Output: will be null if an order is placed from the Back end.