New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tcp-connect.js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcp-connect.js

Tests TCP connections by opening a TCP socket to the given host:port

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

tcp-connect.js

Tests TCP connections by opening a TCP socket to the given host:port.

Installation

$ npm install -g tcp-connect.js

Examples

$ tcp-connect www.apple.com:80
success: www.apple.com:80

$ tcp-connect www.apple.com:80 8.8.8.8:53 192.0.2.0:65535 unknown.example.com:80
success: www.apple.com:80
success: 8.8.8.8:53
failure: unknown.example.com:80 -- Error: getaddrinfo ENOENT
failure: 192.0.2.0:65535 -- Error: connect ETIMEDOUT

$ cat test/example.txt | tcp-connect
failure: localhost:54321 -- Error: connect ECONNREFUSED
ignored: www.google.com:80
success: 8.8.8.8:53
success: www.apple.com:80
failure: unknown.example.com:80 -- Error: getaddrinfo ENOENT
failure: 192.0.2.0:65535 -- Error: connect ETIMEDOUT

$ tcp-connect
www.google.com:80
success: www.google.com:80
www.yahoo.com:80
success: www.yahoo.com:80
^C

$ tcp-connect #www.google.com:80
ignored: www.google.com:80

FAQs

Package last updated on 08 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc