I have a messaging app that has real-world users. For ensuring the anonymity through masking the IP addresses of the users while messaging, users can connect to my messaging app’s proxy server.
Messaging is done through my TCP server. Hence, I wonder how I may ensure that users can connect to my proxy server for anonymity. For instance, if my protocol’s name is “X Protocol”, I want to create a proxy called “X Proxy”, to which users can connect. That is, how may I write a proxy server for my TCP server? Here’s my TCP server code in its simplest form:
const net = require("net");
const server = net.createServer((socket) => {
socket.on("data", (data) => socket.write(data.toString()));
});
server.listen(1813, "185.255.95.248", () => console.log("TCP instance is running..."));