If you start as a client/server i think this should be the solution:
delete this one: enet_svset_event(17,"receive_chatmsg");
and just use this one: enet_clset_event(17,"receive_chatmsg");
Because you are also logged in as a client. And the cl event will also start on your pc because your are CLIENT/server.
I hope this helps
