You may need to change some firewall settings if it still isn't working.
Press the start button in the taskbar, search "Windows Firewall with Advanced Security" in your computer's search bar, press enter, then in the left sidebar click "Inbound Rules". From there, find your SRB2 exe on the list...