Issues Testing with RMX-OS

Started by mroedesigns, June 18, 2011, 09:42:07 am

Previous topic - Next topic

mroedesigns

I'm trying to set up my game and give a single copy to a buddy of mine so that he can help me test it. I've got a static IP set, I got a DNS Server that reroutes to my IP (as found on http://www.WhatIsMyIP.com/).

Also when I type that port into CanYouSeeMe.org it says "Success: I can see your service on 173.31.74.152 on port (54269)
Your ISP is not blocking port 54269"

Still when I go to run the server, I get an error saying "The requested address is not valid in its context" and the server won't start.

Any ideas as to what could be causing the issue?

cfg.ini
Spoiler: ShowHide
NAME = 'RMX-OS Server'
HOST = '173.31.74.152' (Also tried with 192.168.0.1 and 192.168.0.2)
PORT = 54269
RMXOS_VERSION = 1.18

LOG_MESSAGES = false
LOG_ERRORS = true
LOG_ACTIONS = true

DEBUG_MODE = false

MAXIMUM_CONNECTIONS = 50
LOGIN_TIMEOUT = 30
AUTO_RESTART = true
RESTART_TIME = 5
USE_IP_BANNING = true
PREVENT_ZOMBIE_CLIENTS = false
RUBY_PROMPT = false
OPTIMIZE_DATABASE_ON_STARTUP = true
DATABASE_CONNECTION_TIMEOUT = 60

SQL_HOSTNAME = '127.0.0.1'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'root'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [ "Updater", "BlizzABS", "Global Time"
]


SERVERS.push section in client script
Spoiler: ShowHide

    SERVERS.push(['Local Server', '127.0.0.1', 54269])
    SERVERS.push(['Test Server', '173.31.74.152', 54269])
    SERVERS.push(['Test 2', '192.168.0.1', 54269])
    SERVERS.push(['Test 3', '192.168.0.2', 54269])

Blizzard

Hold the Windows key and press R. Type cmd and hit ENTER. Now type ipconfig and hit enter. Scroll to the top and find the first occurrence of IPv4 Address (most probably under "Ethernet Adapter Local Area Connection"). This is the IP that goes into "HOST". If you are still getting this error, it's likely that you have something else already running on port 54269 so try changing the port. Remember to update the client config once you find a working port.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mroedesigns

June 18, 2011, 10:13:20 am #2 Last Edit: June 18, 2011, 11:05:00 am by mroedesigns
I'm running ubuntu, so there's probably a few things that I need to work out. The ubuntu equivalent of ipconfig is 'ifconfig -a'. I ran that, and here's what pops up. eth0 is my wired network. I was assuming I used the first rather than the broadcasted IP, and I know it's not the subnet mask of course.

Spoiler: ShowHide

eth0    Link encap:Ethernet  HWaddr 00:1d:ba:73:02:e4  
         inet addr:173.31.74.152  Bcast:173.31.79.255  Mask:255.255.240.0
         inet6 addr: fe80::21d:baff:fe73:2e4/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:1676526 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1110302 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:1810701780 (1.8 GB)  TX bytes:160682977 (160.6 MB)
         Interrupt:16


If it helps to explain it, here's how its set up. My laptop is running Ubuntu 11.04, in which I'm running Virtualbox. Virtualbox is running a virtualmachine that has Windows XP installed on it. I've been using this setup for development and testing so far, and locally it works perfectly. I knew there would be some bumps making it public, but I was hoping I'd either be able to figure it out or get some help.



Blizzard

Maybe your IP internal LAN IP is 173.31.74.152. It says there that it is.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mroedesigns

June 18, 2011, 05:52:56 pm #4 Last Edit: June 19, 2011, 12:38:10 am by mroedesigns
Well here's the thing. My host laptop is connected through a basic cable modem. No router, so I cant forward the ports that way. However I'm using an NAT connection for virtualbox, and that allows port forwarding. According to CanYouSeeMe, the port is accepting traffic. It has no issues seeing the port. However the server still won't start.

//Edit:

I finally got it to work partially. The server is running, and the client recognizes that the server is online. The only problem now is that when it tries to connect, it pauses for a second and says "Server did not respond.". What could be causing this?

I also found out that the client will say the servers online even if it's not.

mroedesigns

Anybody know what could cause this or how to fix it? I've tried multiple ports, different static IP's, and everything else I can think of. It runs fine if I'm using localhost (127.0.0.1) just not if I'm trying to connect from outside.

I also noticed that if the port being used is forwarded, the client will say the server is online even if it isn't.

Ryex

I've found that If I set it up properly I can't connect to the server using my outside IP but it will run fine for others (this is assuming it is running on your computer)
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

mroedesigns

My buddy is helping me test it from his place, and he's getting the same thing. If it's trying to connect via a port that is forwarded, it will say the servers online when it's not. And whether the server is running or not, when you try to connect it just pauses and says "Server did not respond." I looked to see if there was anything in the logs, or any activity on the server during this and there isn't. It's like the traffic is getting to my computer, but not actually to the server?

Blizzard

There might be something wrong with your network setup. Sorry, but I really don't know what else you can try.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mroedesigns

Well I looked up the error I was getting, and it said it had something to do with binding the IP? I'm not exactly sure what that means, but maybe that'll help you? hah

Blizzard

Problems with bind an IP basically happens when you try to bind it to an IP that isn't yours. If you have several adapters active and your IPs is 192.168.0.1, 192.168.0.2 and 192.168.0.3 and you try to bind 192.168.0.4, then you will get that error because 192.168.0.4 is none of your IPs.
Can you access some sort of network on your Ubuntu system? One that preferably shows all currently connected with their IPs. Your router might have that option. Also, check the IP of your router. e.g. If it's 192.168.0.1, it's likely that your address is 192.168.0.2.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mroedesigns

June 19, 2011, 06:32:37 am #11 Last Edit: June 19, 2011, 06:46:11 am by mroedesigns
I'm not behind a router, I'm just using a wired connection through a modem. I mentioned that earlier, could that be causing an issue? I thought, since CanYouSeeMe was working and the server was running that it was working correctly. Because, unless I'm mistaken, modems will basically accept any connections as long as they're not blocked by a firewall of some sort.

I'll look into seeing what kind of network options I have. I'm using the new release of ubuntu, so I'm not quite use to it yet.

Blizzard

A wired connection through a modem is a router connection. Recently people have been using the wrong terms or confusing terms. Your router can also be a modem because routers usually are modems. A modem is a modulator and demodulator of signals so that you can connect to the Internet while a router maintains a network and routes traffic. If you are connected to something to have Internet, you are using a modem. It's rare that you have an IP address that directly translates into an external IP address. Such cases are maybe wireless hotspot access points or direct gateway connections. Usually you are always behind a router. I have a cable modem here at home and I have an internal network as well.

You should first get the server running with a proper IP address before you go ahead messing with firewall setup and port forwarding.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mroedesigns

June 19, 2011, 06:54:05 am #13 Last Edit: June 19, 2011, 06:55:12 am by mroedesigns
Oh, well I'm confused then. I'm practically illiterate when it comes to networking. Probably why I'm having these issues. All I know is that it's a wired ethernet connection, and that the mediacom box says 'Modem' on the bottom. The other reason I thought it was a modem is because I couldn't seem to access any sort of router page through my internal nor external IPs.

The server is running, I've got a static IP set up for both ubuntu and my virtual windows machine. The server is running now with no problem, it just won't actually connect. It just says "The server did not respond." The other weird bug is that if I try to connect to any port that I have forwarded, it says the server is online even if it isn't. And it will do the same thing if I try to connect when the server isn't running.

Also, about the active IP's, is this what you were looking for?
Spoiler: ShowHide
Starting Nmap 5.21 ( http://nmap.org ) at 2011-06-19 05:49 CDT
Stats: 0:00:09 elapsed; 0 hosts completed (0 up), 256 undergoing Ping Scan
Ping Scan Timing: About 8.01% done; ETC: 05:51 (0:01:55 remaining)
Nmap scan report for 173-31-74-97.client.mchsi.com (173.31.74.97)
Host is up (0.32s latency).
Nmap scan report for 173-31-74-111.client.mchsi.com (173.31.74.111)
Host is up (2.0s latency).
Nmap scan report for 173-31-74-114.client.mchsi.com (173.31.74.114)
Host is up (3.0s latency).
Nmap scan report for 173-31-74-119.client.mchsi.com (173.31.74.119)
Host is up (0.032s latency).
Nmap scan report for 173-31-74-147.client.mchsi.com (173.31.74.147)
Host is up (0.021s latency).
Nmap scan report for 173-31-74-152.client.mchsi.com (173.31.74.152)
Host is up (0.000097s latency).
Nmap scan report for 173-31-74-250.client.mchsi.com (173.31.74.250)
Host is up (0.017s latency).
Nmap done: 256 IP addresses (7 hosts up) scanned in 91.95 seconds

Blizzard

Then I really don't know. :/ If this is your internal and external IP address, then you shouldn't need to forward ports and you should be able to bind the server to your IP.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mroedesigns

Just realised I didn't explain how I got the server working. I booted up my windows machine, and tried ipconfig /all to see what kind of info I would get. Here's what that produced.

Spoiler: ShowHide
QuoteWindows IP Configuration

   Host Name : Computer-2791
   Primary DNS Suffix : 
   Node Type : Unkown
   IP Routing Enabled : Yes
   WINS Proxy Enabled : No

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix : 
   Desription : AMD PCNET Family Ethernet Adapter
   Physical Address : 08-00-27-8C-FA-04
   Dhcp Enabled : No
   IP Address : 10.0.2.13
   Subnet Mask : 255.255.255.0
   Default Gateway : 97.64.168.12
   DNS Server : 97.64.183.165


So my internal IP for the windows machine is 10.0.2.13, but the external is still the same 173.31.74.152 IP as ubuntu registers.

I just got it working though! At least I can connect to it now, haven't tried it on a different computer yet. The reason I was getting that binding error and not connecting, was because in my port forwarding settings I didn't assign the guest IP for the virtual machine. So it was coming in on the host IP, traffic was coming through, but not getting assigned an IP. Hence, no connections. At least thats what I think.
I set the guest IP as 10.0.2.13 because that IP is static, and now I can connect to it.

Blizzard

Ah, I see. That depends on how you set up your virtual network, I forgot about that. You can either create an internal LAN connection between your host and guest OS or you can allow the guest OS to directly connect to the same network the host OS is connected to.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mroedesigns

Yup!

Now it's time for one last, stupid question.
I looked, even searched with the find tool, through the RMX-OS Scripts, but I cant find the chat button anywhere  :facepalm:

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mroedesigns