Assuming that you ment internet packages (since this is Internet Development Forum) you should 1st of all know on which ports the applications listen, you could first write a scanner that scans your own computer wether it has open ports and which protocol, (UDP/TCP) and if there are let it listen on those ports as well (if possible)..

I'm not sure if this works, this is a mere suggestion..

Wax