I made some kind of Ethernet relay board. I designed the board to use RJ-45 connector with integrated magnetics.
The board is designed for 212A-11XA0-R-B-2 connector, but I couldn't find it later, so I bought this connector: https://www.farnell.com/datasheets/17297.pdf
The PCB pinouts are different, so you cannot just swap them.
It's a pain not having a standard PCB pinout for these - I've had the same issue and had to modify the PCB with a drill and literally wire the connector in.