Hmm, this seems to be kinda my area to watch. Although my suggestions have nothing to do with coding. There are a few programs online that you can download that will do pretty much what your asking for. I think one such program was called NetWatcher. Perhaps a search on Yahoo, Google, or some other search engine using the keywords, "Net Monitor, Net watcher, IPX logger, Connection watcher" or some similiar keyword might dredge up some good results. "Don't tell me I'm smart, I might actually believe you!"