Quote from gkishot:
Did you get any warnings from McAfee software?
No I did not and that is why it took me so long to figure out what was the issue. Btw, I still guess this is the issue and am not really sure if this is the true reason for the issue.
I did a complete system scan with mcafee and Ad-aware and they found nothing. I googled the error, many people have witnessed this error before. And there are unfortunately no clean solutions as far as I know.
Then I looked into
If you have McAfee, go to Navigation on top right corner of the software. Then, Security History. I see many messages like below:
"Suspicious Incoming Network Connection Blocked
Source IP Address 208.245.107.3
The PC gw1.ibllc.com tried to access your system port TCP port 50699. If you want to allow this traffic, either trust the IP address or open the port in the System Services in Firewall."
What makes me uncertain if McAfee was the reason for not being able to access TWS and IB website is that I got the same message in my McAfee just an hour ago also. And my access to TWS and IB website is fine today.
Also, yesterday when I was not able to access TWS, I disabled McAfee firewall, but it did not resolve the problem. So, I am not 100% sure if it was McAfee or if it was due to something else.
LESSON 1: I need to have another PC on another internet network (maybe a mobile connection to deal with such problems in future, when I might have a position.)
LESSON 2: I must always maintain a stop order in the market.