The peer-to-peer (P2P) energy transaction scheme is a new structure being recently used in the local energy markets to develop flexibility of energy hubs when energy cost is high. This study proposes a Norwegian industrial area with integrated multienergy hubs (MEHs) that are integrated with distributed energy resources (DERs), including, photovoltaic system (PV), wind turbine (WT), convex and non-convex CHP units, onsite flexibility, and plug-in electric vehicles (EVs). Despite electrical energy trading, heat energy is also considered for P2P transactions in the presence of CHP units. In this paper, objective function is analyzing the effectiveness of the P2P strategy for energy cost reduction concerning the substantial peak power charge. According to the obtained results, the P2P framework increases the flexibility of the integrated hubs in the case of energy management by nearly 30%. Because industrial buildings have shared a significant level of their thermal and power generation (from 1500 to 2500 kW) to meet the energy demands.