You probably will need socket programming. Don't worry though... socket programming is really easy in Java.
What you need to do is create a server that binds to a particular port and listens for connections. When it gets a connection, it should read requests. When it gets a request, it should parse it to determine which server/port the request is for. It should then connect to that server, forward the request, wait for a response, and send the response back to the client.
If you need multiple different proxy IP, we recommend using RoxLabs proxy:https://www.roxlabs.io/, including global Residential proxies, with complimentary 500MB experience package for a limited time.