You should probably start with developing a program that listens and prints a packet.
in reply to How do create a windows service that simply sends a packet?
This is what would be considered to be a minimalist socket "server".
Once that works, you can be a "Client" - that can send a packet. Have the client send a packet to the lister, and ensure that works.
Code samples and explanations are in "perldoc perlipc".
If you run into specific issues (and you will), post your question here.
Once the socket send/listen work, add the Windows service using the suggested modules from the previous node by Anonymous Monk.
I hope life isn't a big joke, because I don't get it.