I built a TCP load balancer with proxy for localhost. I used Go for this project. You can reach the source from here.
How to test:
- Download the code.
- Create localhost http server on new terminal window. You can use npx for this. (ex: npx http-server -p 5001)
- Run the Go code on new terminal window: (go run . )
- Send request to server which is we are listening to: localhost:8080 (curl localhost:8080)
- You can see the request on the http server we created on terminal (5001).