The following figure shows how to connect the PC via Ethernet.
[1]
Ethernet connection cable RJ45/M12 (industry standard)
With M12 plug connector, 4-pin, male, D-coded