thanks but still not work
still get
tcp6 0 0 ::1:18332 :::* LISTEN 27578/bitcoind
tcp6 0 0 :::18444 :::* LISTEN 27578/bitcoind
though i can make it work by typing command bitcoind -daemon -port=8333
I did the same way but got :
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8335 0.0.0.0:* LISTEN 2452/bitcoind
tcp 0 0 127.0.0.1:8336 0.0.0.0:* LISTEN 2452/bitcoind
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:16443 0.0.0.0:* LISTEN 15741/bitcoind
tcp 0 0 0.0.0.0:16444 0.0.0.0:* LISTEN 15741/bitcoind
tcp6 0 0 :::8335 :::* LISTEN 2452/bitcoind
tcp6 0 0 ::1:8336 :::* LISTEN 2452/bitcoind
tcp6 0 0 ::1:631 :::* LISTEN -
tcp6 0 0 ::1:16443 :::* LISTEN 15741/bitcoind
tcp6 0 0 :::16444 :::* LISTEN 15741/bitcoind
in my bitcoin.conf :
dns=0
dnsseed=0
regtest=1
port=8335
rpcport=8336
It worked fine. Which version you're using? Mine is 0.17.1.
I disabled DNS for some reasons but It doesn't play a part here.
By the way, I changed some default port numbers but the two that I set in bitcoin.conf work fine.