Open Windows Control Panel
Click Windows Defender Firewall

Click Allow an app or feature through Windows Defender Firewall

Click Change Settings

Then click Allow another app

click Browse and add (one by one) to where you have iRacing installed (by default this is C:/Program Files (x86)/iRacing) and add the following application files (not the .sgn files):
iRacingLauncher64
iRacingLocalServer64
iRacingService64
iRacingSim64DX11
then in iRacing/ui folder:
iRacingUI
and in iRacing/updater:
iRacingUpdater