Have you recently installed a shady game? A few cracked games change your Hosts file located in C:\Windows\System32\drivers\etc which is the first response to a dns lookup call which consol in bo uses for connect regardless of the call using an ip:port
i use
connect 192.168.0.10:4977
but in hosts if i put a line
192.168.0.11 192.168.0.10
it changes my commands to refer the seconds instance to the first instance which will just hang
check that you hosts file has not set a localhost to a specific ip unless your connected to your local network with that ip