Log in

View Full Version : MTW Proxy



scornflake
02-16-2003, 19:12
I've written a proxy that will allow you to connect to other players without the need for Gamespy. A side effect is that this allows:

a) connection to a server running over a VPN (the server therefore resides on a different subnet and you would not normally be able to join a game running on it)

b) allows hosting behind a firewall, as long as all clients connecting are using the proxy.

The proxy is written in java, and comes with source code. It can be found at:

Medieval Total War Proxy (http://mtw-proxy.cloudnine.net.nz)

Hope people find it useful.

Cheers,
Neil

Gregoshi
02-17-2003, 05:04
Hello scornflake, kind Sir That is a most kind gift you come bearing I am going to copy your post into the Jousting Field forum with a link back to this thread in the case there are questions (and there will be). If you could post more details, that would be great.

http://www.totalwar.org/forum/non-cgi/emoticons/pat.gif

Cedrik
02-17-2003, 17:11
Hi, so you just need the IP adress of the host to play by the internet?

scornflake
02-17-2003, 23:12
Ok, some more details:

- The proxy runs on the client.
- It forwards the UDP packets from MTW clients, to a given server.
- It can handle multiple clients on a LAN, talking to one MTW server

Let's assume a server S is behind a firewall. The only thing on that f/w that needs to be open for incoming connections is 18321 for UDP and TCP.

The clients (all of them that want to join) need to run the proxy, and set the server address to whatever external public IP S has.

So, I can host a game, and IF people know it's IP Address, they can join it using the proxy. So yes, you just the IP address of the server you wish to connect to (and you need the proxy as well, of course)

Does that provide 'a little more detail', or are there other questions?

Neil

FearofNC
02-18-2003, 12:25
downloaded it tonight...will give it a test tomorrow with the clan m8's...i sure hope this works http://www.totalwar.org/forum/non-cgi/emoticons/smile.gif what do you think the chances are that the same meathod/program will work with the viking expansion or rome:tw ?

scornflake
02-18-2003, 21:18
well, they will almost certainly use a different port number, but if the general communications framework for the game ain't broke - I don't see them modifying it (unless they suddenly announce that you can have 64 players, which might indicate a different architecture...)

so my fist punt at that answer would be: [imagine an aussie accent...] : ohhh yeeeeah

Let me know how you get on.

Neil

Cedrik
02-19-2003, 19:15
Hi scornflake, I read the readme of the proxy but i have no idea what to do with the downloadable file.
I dont have to much understanding in proxys, firewalls, java, UDP,packages ....etc.
Where do i copy that file?
How it runs?
Please if can you give me a hand it will be great

scornflake
02-20-2003, 00:38
Ah yes, very very good point there. Forgot, not everyone in the universe knows Java. Here's a bit of an install instruction:

1) You need a Java VM (Virtual Machine). The latest 1.4.1 can be found at Javasoft (see http://www.javasoft.com). You need only a JRE (Java Runtime Environment)

2) With that installed, you should be able to right click on the jar, and execute it using 'javaw'. If not, let me know and I will add a batch file to do it for you.

The batch file would look like this:

java -jar mtw-proxy.jar

If 'java' were in the PATH (I believe it will be if you do a standard install), then to just even see if you can run it, you would be able to do this:

1) open a command prompt by runnig 'cmd' (NT/W2k) or 'command' (Win98/etc).
2) cd
3) java -jar mtw-proxy.jar

That should do it.
Hope this helps, if not please please please let me know so that I can add some decent and relevant content to a INSTALL file which will ship with future distributions.

Unfortunately, I know Java well, so I'm not the best person to pick up on things that might hang others who are not quite so familiar up.

Good luck