Connector : M12 D-code 4pin Male both end. Used to connect M12 devices used in industrial Ethernet and Fieldbus applications.
eBay