Couldn't connect to server

Hi, I followed the tutorial at https://github.com/zcash/zcash/wiki/1.0-User-Guide
using the latest Ubuntu in a virtual machine and is still does not work. I have the node openned but when I try to

./src/zcash-cli getinfo

or

./src/zcash-cli z_getnewaddress

it says "couldn't connect to server"

anyone has a clue about that? I saw some posts about it but have not helped at all

Same issue here, anyone else?

Same issue here, any solutions?

Make sure you're running zcashd on a separate window, did the trick for me.

was having same issue.
ran:
~/zcash/src/zcash

works now.

Same issue:
1. Ubuntu shell in Windows 10
2. zcashd runs in separate window
3. zcash-cli couldn't connect to server
Need a help!

Have you found any solution to this problem?

Same problem here on Ubuntu Shell for Win10, did you found any solution?

Yes,
add in zcash.conf file next line:
rcpallowip=127.0.0.1

now it works fine!

I already have it but it seems like the problem is still there. I used manual from this topic: https://forum.zcashcommunity.com/t/zcashd-and-windows-10/1719
But I am still getting this problem.

Can you please post your config?

Config includes just few lines:
addnode=mainnet.z.cash
rpcuser='username'
rcppassword='password'
rcpallowip=127.0.0.1

Also check yout /etc/hosts file. it should include 127.0.0.1 for local host and your user name in shell, like
127.0.0.1 localhost
127.0.0.1 DESKTOP-YOURNAME

this changes a make.