What ports does RabbitMQ use?

PORT 4369: Erlang makes use of a Port Mapper Daemon (epmd) for resolution of node names in a cluster. Nodes must be able to reach each other and the port mapper daemon for clustering to work. PORT 35197 set by inet_dist_listen_min/max Firewalls must permit traffic in this range to pass between clustered nodes RabbitMQ Management … Read more

NodeJS: How to get the server’s port?

Express 4.x answer: Express 4.x (per Tien Do’s answer below), now treats app.listen() as an asynchronous operation, so listener.address() will only return data inside of app.listen()’s callback: var app = require(‘express’)(); var listener = app.listen(8888, function(){ console.log(‘Listening on port ‘ + listener.address().port); //Listening on port 8888 }); Express 3 answer: I think you are looking … Read more

Efficiently test if a port is open on Linux?

A surprise I found out recently is that Bash natively supports tcp connections as file descriptors. To use: exec 6<>/dev/tcp/ip.addr.of.server/445 echo -e “GET / HTTP/1.0\n” >&6 cat <&6 I’m using 6 as the file descriptor because 0,1,2 are stdin, stdout, and stderr. 5 is sometimes used by Bash for child processes, so 3,4,6,7,8, and 9 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)