Welcome,
Guest
. Please
login
or
register
.
Home
Help
Login
Register
Kingdoms of Ahln
>
Kingdoms of Ahln
>
Bugs and Errors
>
Can't connect remotely.
Pages: [
1
]
Print
Author
Topic: Can't connect remotely. (Read 924 times)
Saffire
Citizen
Posts: 136
Can't connect remotely.
«
on:
November 18, 2008, 08:28:13 pm »
For some odd reason I cannot for the life of me connect to my copy of Ahln sitting on my server at home. However, I can run an entirely different MUD codebase on the same server, running on the same port, and connect to it with no problems. Here is my current setup:
At the top of my network I have a taryon cable modem. I run a cable from that into a Trendnet TEW-432BRP wireless router, and a cable from that connected to my server. The rest of the computers on the network connect wirelessly (This shouldn't make a difference, but I add it for the sake of completeness). The server is assigned a static IP address of 192.168.1.50, every other computer on the network is assigned a dynamic IP address.
Whenever I try to connect to the MUD (Which is running on the server 24 hours 7 days a week) via telnet I get the following error: "Could not open connection to host, on port 23: Connect failed."
I have tried running the game through port 23, port 4000, and port 10000. I have set up port forwarding for each of those ports and set them to forward to the server's dynamic IP address. I have also tried connecting with port forwarding turned off. I have put the server's IP address into the router's DMZ, which also yielded no results.
My ISP is not blocking connections from port 23, 4000, or 10000.
If I run another MUD codebase from my server (A Python codebase, if that matters) I can connect to it remotely on any of the ports I've been trying. It should also be noted that Ahln runs on the server flawlessly, and even connects to it locally.
Based on the above, I can only conclude that there is some problem with the codebase when connecting remotely.
The server is running Windows XP Professional service pack 3, ruby 1.8.6 (One click installer for Windows). One oddity is that for some reason I couldn't force it to install Eventmachine 0.12.2, so instead I went with Eventmachine 12.0 (i386-mswin32), it seems to work perfectly.
Any ideas?
Logged
Justin
Administrator
Citizen
Posts: 189
Re: Can't connect remotely.
«
Reply #1 on:
November 18, 2008, 08:37:58 pm »
The address used in the server configuration needs to be your external IP address.
Logged
Saffire
Citizen
Posts: 136
Re: Can't connect remotely.
«
Reply #2 on:
November 18, 2008, 08:50:34 pm »
Oh, duh! Thanks. But when I set it to my external IP address it does this:
Quote
[11/18/08 20:47:06 Object]: Server restart #0
[11/18/08 20:47:06 Manager]: Loading objects from storage...
[11/18/08 20:47:06 StorageMachine]: Loading all game objects...may take a while.
[11/18/08 20:47:06 StorageMachine]: Grabbing all the goids...
[11/18/08 20:47:07 StorageMachine]: Loading inventories and equipment...
[11/18/08 20:47:07 StorageMachine]: Don't have 57a65eca-ae04-6079-bf53-55da34b5d12e loaded...what does that mean? (Probably a Player)
[11/18/08 20:47:07 StorageMachine]: Don't have ed1025ed-bee8-32e3-f8ba-591193404715 loaded...what does that mean? (Probably a Player)
[11/18/08 20:47:07 StorageMachine]: ...done loading inventories and equipment.
[11/18/08 20:47:07 Manager]: 107 objects have been loaded.
[11/18/08 20:47:07 Manager]: Starting event handler...
[11/18/08 20:47:07 Manager]: Event handler started.
[11/18/08 20:47:07 Logger]: Cleaned out logger. There were 46 entries.
[11/18/08 20:47:07 Manager]: Manager is running.
[11/18/08 20:47:07 Server]: Manager created
[11/18/08 20:47:07 Server]: #<RuntimeError: no acceptor>
[11/18/08 20:47:07 Server]: c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.0-i386-mswin32/lib/eventmachine.rb:500:in `start_tcp_server'
c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.0-i386-mswin32/lib/eventmachine.rb:500:in `start_server'
C:/Documents and Settings/Steven/Desktop/Stuff/Documents/Projects/In Progress/Game/server.rb:47:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.0-i386-mswin32/lib/eventmachine.rb:224:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.0-i386-mswin32/lib/eventmachine.rb:224:in `run_machine'
c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.0-i386-mswin32/lib/eventmachine.rb:224:in `run'
C:/Documents and Settings/Steven/Desktop/Stuff/Documents/Projects/In Progress/Game/server.rb:45:in `initialize'
C:/Documents and Settings/Steven/Desktop/Stuff/Documents/Projects/In Progress/Game/server.rb:79:in `new'
C:/Documents and Settings/Steven/Desktop/Stuff/Documents/Projects/In Progress/Game/server.rb:79
[11/18/08 20:47:07 Logger]: Cleaned out logger. There were 5 entries.
[11/18/08 20:47:07 Server]: Saving objects...
[11/18/08 20:47:07 StorageMachine]: Saving given objects (107)...please wait...
[11/18/08 20:47:22 StorageMachine]: ...done saving objects (107).
[11/18/08 20:47:34 Server]: Objects saved!
after it's done this it stalls a bit, and then restarts, rinse/repeat.
«
Last Edit: November 18, 2008, 08:58:12 pm by Saffire
»
Logged
Justin
Administrator
Citizen
Posts: 189
Re: Can't connect remotely.
«
Reply #3 on:
November 18, 2008, 11:59:27 pm »
Ah, right. Because it can't bind to that address, either. Hmm...I've solved this before, I just can't recall how. You can try using "localhost" or "0.0.0.0" and see if those work.
Essentially, the host name/IP address of the server needs to be the same as the one the client uses to connect to it, plus it needs to know that address refers to the local machine.
Logged
Saffire
Citizen
Posts: 136
Re: Can't connect remotely.
«
Reply #4 on:
November 19, 2008, 08:25:26 am »
localhost and 127.0.0.1 both work. That's my public IP address.
Hmm. I'll look into it more in-depth after work.
Logged
Justin
Administrator
Citizen
Posts: 189
Re: Can't connect remotely.
«
Reply #5 on:
November 24, 2008, 12:00:09 am »
Have you worked this out yet?
Turns out
my
router was misconfigured when I was looking at this before, plus I was out of town so things were weird.
I've tried this out at home, on Windows. Configuring it to use "0.0.0.0" appears to be the only address that works properly (allows connections from the local machine, local network, and from the other side of the NAT).
Logged
Saffire
Citizen
Posts: 136
Re: Can't connect remotely.
«
Reply #6 on:
November 25, 2008, 09:31:43 pm »
I haven't had time to look at it much yet, I've been out of town, I get back on Sunday.
Logged
Pages: [
1
]
Print
Jump to:
Please select a destination:
-----------------------------
Kingdoms of Ahln
-----------------------------
=> General
=> Development News
=> Admin and Development Help
===> Scripting
=> Bugs and Errors
=> Ideas
-----------------------------
Everything Else
-----------------------------
=> Tavern Tales
Powered by SMF 1.1.15
|
SMF © 2006-2009, Simple Machines
Terra97
design by
Bloc
Loading...