After posting the thread here, I started googling and came across this guide. I followed some useful methods from there. First I run network troubleshooter and fix network connectivity issues by using ethernet. After doing the tasks properly, the problem got solved. Now I have no longer any issues while playing the game on my PC.