I have a problem with bitcoin node is that when I want to get out of the full node bitcoin server.
I ran this method and it does not work
curl \
--user myusername \
--data-binary '{"jsonrpc":"1.0", "id":"curltest", "method":"getnewaddress", "params":[]]' \
-H 'content-type : text / plain; ' \
http://ip server for node:8332/
Answer edited to add:
Error message
curl: (7) Couldn't connect to server
Config file
erver=1
aemon=1
rpcallowip=ip exchange rpc
allowip=127.0.0.1
rpcport=8332
rpcuser=xxx
rpcpassword=xxxxxx
wallet=/home/user/.bitcoin/wallets/coininx/wallet/dat
walletdir=/home/user/.bitcoin/wallets