I’m currently (legally) reverse engineering a game written in Java, so the client I have is a jar file.
I started Wireshark and started intercepting the traffic between the server and the client.

As you can see, the game’s server has an IP address of 151.xx.xxx.xxx
Although the game’s server doesn’t have a hostname, I tried converting its IP address to its hostname, the result was something like this nsXXXXX.ip-151-xx-xxx.net
My plan is to allow all the TCP traffic to first go through a proxy of mine (which is my other local machine 192.168.0.7
) so that we can intercept, analyze and edit the traffic if necessary.
So I tried editing my hosts file. This is what I currently have:
192.168.0.7 nsXXXXX.ip-151-xx-xxx.net
192.168.0.7 151.xx.xxx.xxx
Pinging that hostname fails and redirects to 192.168.0.7
just fine.
However, pinging 151.xx.xxx.xxx
results in me still being able to receive packets and logging into the game.
I want to redirect that IP address to my other machine 192.168.0.7
On that machine, I’ll open the port it needs to connect to and let the traffic go to 151.xx.xxx.xxx
Is there a way to redirect 151.xx.xxx.xxx
to 192.168.0.7
, akin to what the hosts
file does?
Thank you in advance.