Pry open the plug cover supplied with the generator with a razor blade. Remove the cover again and you will see that there are three posts inside the generator plug, two of which are the same length and one post is longer than the other two posts. Next, our wiring is connected to two pillars of the same length. Since the plug has two wires, one is the neutral wire and the other is the live wire, for now we just need to replace the end of the regular plug with the special plug for our generator. At this point we just need to connect the wire from the socket we purchased to the generator plug. The two wires are connected to the two pillars circled in red.
The last step is to use the two screws on the post to secure the wire. If you want to connect the generator power to the mains, you need to connect the generator plug. Connect the wire to your mains. power line, then you do not need to buy a socket.