As Mark says, make reservations. However, before you do anything, you need to decide what you want to do and that will help you decide which harbor. Rather than try to give you all the specifics here, if you go to Westrec's website and go to the Chicagoharbors link, they give a brief description of each harbor and what it's close to. Breifly, though, far south is Jackson harbor. It will be too far from "the city" if you want to walk, and is actually quite a ride up the lake, too. Diversey (my harbor) is in a great location for walking to restaraunts, etc. I don't know what your boat is, but Lake Shore Drive goes over the entrance to the harbor and there is only approx. 12' of clearance. Burnham is a great harbor sitting directly behind Soldier Field. Dusable is just south of Navy Pier. Expect the harbors to be pretty lively (read noisy) the night of the 4th. If you've never been to Chicago for the 4th, be prepared for major chaos. You can safely watch the fireworks if you're diligent in your trip out to whereever you're going to watch from, but getting back into the harbors when they are finished is sometimes downright scary. Better off to plan on heading out into the lake for a short waiting period, let all the goofs get back in, and then head in.
If you have any specific questions post them here and I'll see if I can help. I'm sure plenty of others will contribute as well.