The structural properties of glassy Ge2Se3 were studied in the framework of first-principles molecular dynamics by using the Becke-Lee-Yang-Parr scheme for the treatment of the exchange-correlation functional in density functional theory. Our results for the total neutron structure factor and the total pair distribution function are in very good agreement with the experimental results. When compared to the structural description obtained for liquid Ge2Se3, glassy Ge2Se3 is found to be characterized by a larger percentage of fourfold coordinated Ge atoms and a lower number of miscoordinations. However, Ge-Ge homopolar bonds inevitably occur due to the lack of Se atoms available, at this concentration, to form GeSe4 tetrahedra. Focusing on the family of glasses GexSe1-x, the present results allow a comparison to be carried out in reciprocal and real space among three prototypical glassy structures. The first was obtained at the stoichiometric composition (glassy GeSe2), the second at a Se-rich composition (glassy GeSe4) and the third at a Ge-rich composition (glassy Ge2Se3). All networks are consistent with the "8 - N" rule, in particular, glassy GeSe4, which exhibits the highest degree of chemical order. The electronic structure of glassy Ge2Se3 has been characterized by using the Wannier localized orbital formalism. The analysis of the Ge environment shows the presence of dangling, ionocovalent Ge-Se, and covalent bonds, the latter related to Ge-Ge connections. DOI: 10.1103/PhysRevB.86.224201