Need help with udp

need help with a simple udp code that sents and reseive data using local wifi
which one should be the server my pc or my core
pc -> 192.168.0.102
core -> 192.168.0.103