transparent-proxy icon indicating copy to clipboard operation
transparent-proxy copied to clipboard

Issue with YouTube

Open ztomas-codes opened this issue 7 months ago • 0 comments

Im really noob in proxy servers.. But i dont know why Youtube video streaming in iphone application is not working? here is my code:

const ProxyServer = require('transparent-proxy');
const express = require('express');
const app = express();

const server = new ProxyServer({});

server.listen(9000, '0.0.0.0', function () {
    console.log('TCP-Proxy-Server started!', server.address());
});

app.get('/connections', (req, res) => {
    const bridgedConnections = server.getBridgedConnections();
    const connections = Object.values(bridgedConnections).map(conn => ({
        address: conn._tunnel.ADDRESS,
    }));
    res.json(connections);
});

const PORT = 3000;
app.listen(PORT, () => {
    console.log(`Express server is running at http://localhost:${PORT}`);
});

ztomas-codes avatar May 10 '25 08:05 ztomas-codes