X-Security or Dahua Pinout Wiring Diagram
Many X-Security and Dahua IP cameras may have a pinout diagram like this. On the left side is the RJ45 pinout (T-568B) and the right side is the PoE pinout of the IP camera (color coded wiring diagram).
The connection is as shown in the illustration. For example, the gray wire goes to pin 8, brown to pin 2, blue to pin 1 and so on.