I am running a Node Js server in port 2000 , but it is not working [closed]

My node.js server was constructed and is running on port “2000”. However, when I open it in a browser, it occasionally opens at localhost:2000 instead of arriving at all. Additionally, when I try to hit localhost:2000/login, it does not function and is trapped in the loading screen. Why? I need assistance since I am unable to solve this.