Hi guys, I'm working on building a server package similar to xampp, and I've done some googling on opening ports with c++ but I cant find a straight answer. Can someone please shed some light on this for me. I'll keep searching google in the mean time. Thanks Guys.

You need to look for socket programming. Exactly how to do it depends on what operating system you are using. www.DataReel.com has a large free library that contains client/server programs among other things and is ported to both *nix and MS-Windows.