hi,
this is my first post in a newsgroup, hope i make everything right
well, this is my situation:
i have always been curious about how online games communicate with
their servers. since i am computer savvy and i can program myself, i
decided that i wanted to get an online game, analyze the client-server
conversation and maybe even try to "fake" the server to some extent.
so, i downloaded gunz (
www.gunzonline.com), a free but not open-source
game (windows only, i fear). i chose it because i knew that the actual
data sent while playing is spread peer-to-peer, so the client-server
part i was interested in was just about the logging in and finding
games - should be a lot easier than a "normal" online game.
i have had some success with my plans. i could manipulate the loading
application (which makes sure the client is up-to-date) by redirecting
the address
www.gunzonline.com to 127.0.0.1 in my hosts file. this
works fine for domains, but nor for ips themselves.
i found that the loading application connects randomly to a ftp server
on one of the following ips (i "crippled" them because i don't know the
policy of newsgroups about that):
xxx.145.yyy.134
xxx.145.yyy.135
xxx.145.yyy.136
where xxx is the same in every case, likewise yyy.
my problem now is: i am working on windows and i could not find any
solution of how to redirect the ips to localhost. i think that the ips
are hardcoded in the application, since i could only find DNS name
resolution for gunzonline.com, which happens to be xxx.145.yyy.131 in
every case.
i googled for hours and apparently there is no way to do it the easy
way.
i developed a new plan:
i run my own ftp server on my windows machine, listening to port 2100.
then, on an old pc, i set up damn small linux (could change that to any
other distro, if necessary, although ram and cpu are quite limited) to
act as a gateway for my windows box. so, i set the gateway (i think
that may be important) for every ip in the xxx.145.yyy.0 ip range to
the linux machine.
that actually seems to be right so far. so, i need my linux box to do
the following:
listen for packets coming in on port 21/tcp and redirect them to
192.168.72.1, port 2100/tcp. sounds easy, but i could not find any
solution that actually worked for me. i always get an "connection
refused" error, no matter from where i try to connect. even when i
connect from the linux box to 127.0.0.1 port 21 i get rejected, but
connecting to 192.168.72.1 port 2100 works fine.
note that the linux pc is connected to my windows machine directly.
there is just a single network card in the linux box.
any suggestions on that? (of course, if anyone happens to have a clue
how i can solve this easier than routing through linux, i'd be happy to
know)
so, finally, i hope i wrote clearly enough for everyone to understand
what i mean.

thank you in advance,
Tonni