I can't see anything while running Rails server or Node server

I'm in a big problem, I can run my Rails or Node servers, but when I look into the browser, Chrome tells me that can't acces into localhost page.

I tried modifying the hosts file in C://Windows/System32/drivers/etc/hosts

I have removed the comments to: 127.0.0.1 localhost ::1 localhost

But nothing happens, when that lines are in comments Apache works, but not Rails or Node.

I don't have any proxy, I triedd with differents ports, and I don't know what else to do.

I would appreciate any advice