Q&A

Q1: How do I figure out which port a specific game or toy uses?
A1: I’d be very surprised if the vendor didn’t tell you. Still, some don’t. You’ll want to do the “difference” trick again to find out which port your Net toy uses. Dial in to an Internet account that you know works, and type the following:
										netstat -a > before.txt
									

Then run the game, stay connected, get back to a DOS prompt, and type this:

										netstat -a > after.txt
										fc before.txt after.txt
									

You’ll be rewarded with the socket number(s) that your game uses. This method has two drawbacks: UDP ports won’t show up this way because there is no “connection.” Also, you have no idea whether there’s a different TCP connection used at login versus during game play.

If you must know exactly ...

Get Sams Teach Yourself Network Troubleshooting in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.