As mentioned, for the JK the OBD2 port is under the left side of the dash.
Keep in mind there are multiple CAN buses - The CAN C main twisted pair high-speed bus (most functions), the CAN IHS interior high-speed (radio), and the LIN interior low-speed single-wire bus (misc switches, monitoring, etc. A cheap ELM 327 OBD2 reader can generally only access modules connected to the CAN C bus, but that has all of the DTC fault codes.
The OBD2 port is fairly consistent in that location as many states and/ or counties (like Maricopa in Arizona) use this port for emissions testing.
The other port that is behind the dash is for the Security Gateway Module, but that only applies to 2018+ JLs and JTs.