Configuring TCP and UDP preferences for troubleshooting