Context. Ionized interstellar gas is an important component of the interstellar medium and its lifecycle. The recent evidence for a widely distributed highly ionized warm interstellar gas with a density intermediate between the warm ionized medium (WIM) and compact H ii regions suggests that there is a major gap in our understanding of the interstellar gas. Aims. Our goal is to investigate the properties of the dense warm ionized medium in the Milky Way using spectrally resolved SOFIA GREAT [N ii] 205 µm fine-structure lines and Green Bank Telescope hydrogen radio recombination lines (RRL) data, supplemented by spectrally unresolved Herschel PACS [N ii] 122µm data, and spectrally resolved 12 CO. Methods. We observed eight lines of sight (LOS) in the 20 • < l < 30 • region in the Galactic plane. We analyzed spectrally resolved lines of [N ii] at 205 µm and RRL observations, along with the spectrally unresolved Herschel PACS 122 µm emission, using excitation and radiative transfer models to determine the physical parameters of the dense warm ionized medium. We derived the kinetic temperature, as well as the thermal and turbulent velocity dispersions from the [N ii] and RRL linewidths. Results. The regions with [N ii] 205 µm emission are characterized by electron densities, n(e) ∼ 10 to 35 cm −3 , temperatures range from 3400 to 8500 K, and nitrogen column densities N(N + ) ∼ 7×10 16 to 3×10 17 cm −2 . The ionized hydrogen column densities range from 6×10 20 to 1.7×10 21 cm −2 and the fractional nitrogen ion abundance x(N + ) ∼1.1×10 −4 to 3.0×10 −4 , implying an enhanced nitrogen abundance at a distance ∼ 4.3 kpc from the Galactic Center. The [N ii] 205 µm emission lines coincide with CO emission, although often with an offset in velocity, which suggests that the dense warm ionized gas is located in, or near, star-forming regions, which themselves are associated with molecular gas. Conclusions. These dense ionized regions are found to contribute 50% of the observed [C ii] intensity along these LOS. The kinetic temperatures we derive are too low to explain the presence of N + resulting from electron collisional ionization and/or proton charge transfer of atomic nitrogen. Rather, these regions most likely are ionized by extreme ultraviolet (EUV) radiation from nearby star-forming regions or as a result of EUV leakage through a clumpy and porous interstellar medium.