They all are running on same machine. I have removed firewall from all these ports but its not working. If i remove firewall completely , it works. But , i think turning off the firewall is not a good idea.
I suspect that you are using the device's IP address instead of the localhost address of 127.0.0.1.
When you use the device's IP address, the traffic has to go through the network card and is intercepted by the Windows Firewall. If you keep everything on 127.0.0.1 it won't go via the card. It will be faster as well.
You can, in fact persuade the Windows firewall to let through traffic on various ports but I absolutely wouldn't recommend it on a device running such an out-of-date operating system.
W8.1 GA: October 17, 2013
W8.1 End of mainstream support: January 9, 2018 (You may have extended support via your organisation)