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