Multiplayer with P2p networking

I am designing a pong game in ue4 but how can I add multiplayer with it with p2p.
And if the host quits the game the other player wins.