O'Reilly logo

Sams Teach Yourself Network Troubleshooting in 24 Hours, Second Edition by Jonathan Feldman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required