
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
tcp-forward
Advanced tools
TCP forwarding module that allow you to forward client connections and servers to a remote.
TCP forwarding module that allow you to forward client connections and servers to a remote.
npm install tcp-forward
const { Local, Remote } = require('tcp-forward')
First setup a remote forwarding server
const r = new Remote()
r.on('forward-listening', function (port, topic) {
console.log('Client connected and we are forwarding port ' + port)
console.log('Client passed the following topic as well', topic)
})
r.on('forward-close', function (port, topic) {
console.log('Client server closed or became unresponsive, closed port ' + port)
console.log('Client had the following topic', topic)
})
r.on('forward-connect', function (socket, topic) {
console.log('Client connected to us and is asking us to forward the socket')
console.log('Client passed the following topic as well', topic)
})
r.listen(10000)
// to shut it down call r.destroy()
Then you can setup clients to use the forwarding to server to act as a server/client for them.
const l = new Local(1000, 'remote-server.com')
const server = l.createServer()
server.on('connection', function (socket) {
// got forwarded socket
})
server.on('error', function () {
console.log('Connection lost to the server')
})
server.on('listening', function () {
console.log('The remote server is listening on port', server.address().port, 'for us')
})
server.listen(Buffer.from('some topic that is forwarded to the server'))
// call server.close() or server.destroy() to shut it down
You can connect using a client connection as well
const socket = l.connect(Buffer.from('some topic'))
If you just want to run a simple forwarding server a CLI is available also
npm install -g tcp-forward
tcp-forward-server --port 10000 # runs a forwarding server on port 10000
MIT
FAQs
TCP forwarding module that allow you to forward client connections and servers to a remote.
We found that tcp-forward demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.