Which process is using port 4000 (identified as remoteanything by nmap)?
nmap just makes a guess at the service here, as basically any application can bind to any port. To see which specific application it is in your case, run

lsof -i :4000