Well I solved the using by using the opening the custom game and then executing the connect ip address command on the pc.
But I When I join my friend over offline lan in custom game,it always opens up as spectator mode.How to make this double player against zombies.