IF NETJOINGAME("127.0.0.1", 12345)
STDOUT "join\n"
bJoin=TRUE
p1=NETCREATEPLAYER("p1")
p2=NETCREATEPLAYER("p2")
ELSE
STDOUT "host\n"
NETHOSTGAME(12345)
ENDIF
WHILE TRUE
num% = NETNUMPLAYERS()
STDOUT "ID - Player name\n"
FOR i% = 0 TO num%-1
gIDs% = NETGETPLAYERID(i%)
STDOUT gIDs% + " - " + NETPLAYERNAME$(gIDs%)+"\n"
NEXT
KEYWAIT
IF moo=0 AND bJoin
moo=1
NETDESTROYPLAYER p1
NETDESTROYPLAYER p2
ENDIF
WEND
Run twice, works for me. Can you change it to reproduce your behaviour?