- Nodejs = 0.10.12
- Express.js = 3.2.6
- Git for deploy
- Run the server:
node server.js
- Invoke telnet client:
http://NodeServerIp/telnet?ip=www.google.com&port=80
- Check the result:
{"Error": "connect ETIMEDOUT","HasError": true,"Listening": false,"ElapsedTime": "21006.4 ms"} or {"Error": null,"HasError": false,"Listening": true,"ElapsedTime": "103.5 ms"}
Demo: a telnet to google server