I have a game client. Which connects to this game. I'm trying to set up a socket server which intercepts all traffic to the game server(The game runs through the use of sockets)
My problem is that i would need to redirect all traffic my computer makes to the game servers ip + port to 127.0.0.1 to make it connect to the socket server i've made myself first.
I know i could use the windows hosts file but this redirects ALL traffic. I only want 1 port redirected(The one with TCP traffic) If the HTTP traffic also gets redirected it ruins everything.
I'm using windows 7 The programming language is java.