Tunneling port

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
serfess
Newly Registered User
Posts: 6
Joined: 09 Apr 2012, 12:13

Tunneling port

Post by serfess »

Hello,

I'd like to ask if I can play somehow ManaWorld if the proxy server I use to access internet blocks port 6901.
This port is closed. I heard about some tunneling tricks. Is that possible?
I use ubuntu 11.

Thx in advance.
Frost
TMW Adviser
TMW Adviser
Posts: 851
Joined: 09 Sep 2010, 06:20
Location: California, USA

Re: Tunneling port

Post by Frost »

It's possible, but probably with complications and risk.

You would need to use another computer (think of it as a reflector or another proxy server) to let you ultimately connect to TCP port 6901 on the game server.
There are three problems with this.

First, you must find such a server that would let you connect e.g. on port 443 and then be redirected to TMW 6901. You might be able to run such a thing from your home if you understand how to set up an Internet server there (and the implications of running such a server.)

Second, the offending proxy server might not merely block ports, but it might also inspect traffic to detect attempts to bypass it. For example, it might see that the TMW game traffic doesn't look like HTTP and block it.

Third, many proxy servers are merely the software manifestation of a contract. For example, your employer might prohibit "non-work-related Internet use" and use the proxy server to patrol that policy. Bypassing the proxy might lead to disciplinary action.
You earn respect by how you live, not by what you demand.
-unknown
serfess
Newly Registered User
Posts: 6
Joined: 09 Apr 2012, 12:13

Re: Tunneling port

Post by serfess »

Thx, I've managed to do what you say.
I tunelled my 6901 port to official server throught my friends SSH.
In the game I connect to localhost:6901, I login sucsesfuly BUT!!! when updating news.txt it says empty reply from server (((
Frost
TMW Adviser
TMW Adviser
Posts: 851
Joined: 09 Sep 2010, 06:20
Location: California, USA

Re: Tunneling port

Post by Frost »

serfess wrote:Thx, I've managed to do what you say.
I tunelled my 6901 port to official server throught my friends SSH.
Excellent! :D
In the game I connect to localhost:6901, I login sucsesfuly BUT!!! when updating news.txt it says empty reply from server
This is great. It means you're on the right track. :)
You need to also tunnel ports 5122 and 6122 to connect to the map server and character server components.
news.txt is fetched from a web site, in this case http://updates.themanaworld.org/news.txt. It's not essential to play the game, but you can solve that problem too by tunnelling updates.themanaworld.org:80 through that SSH connection as well.

Note that you might need to modify your hosts file so that connections to "server.themanaworld.org" actually go to 127.0.0.1.

Nice work. Enjoy the game!
You earn respect by how you live, not by what you demand.
-unknown
serfess
Newly Registered User
Posts: 6
Joined: 09 Apr 2012, 12:13

Re: Tunneling port

Post by serfess »

Hmmm... when I press Play - I recieve "ItemDB: error while loading items.xml!"
By the way I am on windows now )))
After update this error doesn't appear.
Last edited by serfess on 10 Apr 2012, 10:47, edited 1 time in total.
serfess
Newly Registered User
Posts: 6
Joined: 09 Apr 2012, 12:13

Re: Tunneling port

Post by serfess »

Oh... updating is finally works ))) I'll wait till it is done!
serfess
Newly Registered User
Posts: 6
Joined: 09 Apr 2012, 12:13

Re: Tunneling port

Post by serfess »

So now I'm tunelling ports:
6901 - server.themanaworld.org:6901
6122 - server.themanaworld.org:6122
5122 - server.themanaworld.org:5122
80 - updates.themanaworld.org:80

my hosts has:
127.0.0.1 server.themanaworld.org
127.0.0.1 updates.themanaworld.org

And it says Couldn't connect to remote host - when I try to get my characters.
serfess
Newly Registered User
Posts: 6
Joined: 09 Apr 2012, 12:13

Re: Tunneling port

Post by serfess »

Any ideas?(
Frost
TMW Adviser
TMW Adviser
Posts: 851
Joined: 09 Sep 2010, 06:20
Location: California, USA

Re: Tunneling port

Post by Frost »

serfess wrote:So now I'm tunelling ports:
my hosts has:
127.0.0.1 server.themanaworld.org
127.0.0.1 updates.themanaworld.org

And it says Couldn't connect to remote host - when I try to get my characters.
Ah, my mistake. It appears the game server instructs the client to connect to 81.161.192.4 (real IP address, not hostname) port 6122 for characters.
That's why the hosts file isn't working.

Well, you could assign 81.161.192.4 as an IP address on the loopback interface lo0. That seems like a dreadful hack, but I can't think of a reason why it wouldn't work. In any case, you can't connect to that host directly anyway, so it's not like it would break anything.

I think you'd need to adjust how you're forwarding the ports to account for the new IP address. My brain's not working so well at this hour, sorry.

Just a thought: you could see what the game looks like by connecting to the testing server. That uses all hostnames, so no routing hack is required. It has the game content, though not the amazing people who play on the real server.
More info is at http://wiki.themanaworld.org/index.php/Testing_Server
You earn respect by how you live, not by what you demand.
-unknown
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Tunneling port

Post by o11c »

Frost wrote:Just a thought: you could see what the game looks like by connecting to the testing server.
Even if you use the hostname in the config file, it gets resolved to an IP before being sent to the client.
Former programmer for the TMWA server.
Post Reply