Pixhawk 5x and companion computer by ethernet

https://ardupilot.org/copter/docs/common-network.html

That should have what you need.

The parameters start with NET. You need to ensure you have it compiled with network support.