barronwaffles / dwc_network_server_emulator

A Nintendo DS and Wii server emulator.
GNU Affero General Public License v3.0
1.06k stars 165 forks source link

New server on amazon aws #247

Closed RiccardoRoscilli closed 8 years ago

RiccardoRoscilli commented 8 years ago

Hello to all, I'm trying to setup a new server on my amazon aws but no result yet. This is what I can do since I work on the web and sell domain. I have a dns server that can be configured to point nintendowifi.net or whichever domain needed to ani IP. I have a test server on amazon aws already setted up with dwc server emulator. After many attempt both with real nintendo ds lite consolles patched with R4 and desmume I'm very frustrated since did'nt get something to work. Any help would be appreciated. Bye Riccardo

kyle95wm commented 8 years ago

You've used my script right? It should be working. We need more information.

RiccardoRoscilli commented 8 years ago

Hi mate, yes definitely used your install script and everything gone right from what I saw. Maybe only an issue on dns masq. By the way this is the server IP 52.30.185.207 I can give you whatever kind of access you need since it's a test server only for this this is what I get when the server starts [2016-01-15 15:08:22 | GamespyDatabase] [DV7o4vOa] STARTING: CREATE TABLE IF NOT EXISTS users (profileid INT, userid TEXT, password TEXT, gsbrcd TEXT, email TEXT, uniquenick TEXT, pid TEXT, lon TEXT, lat TEXT, loc TEXT, firstname TEXT, lastname TEXT, stat TEXT, partnerid TEXT, console INT, csnum TEXT, cfc TEXT, bssid TEXT, devname BLOB, birth TEXT, gameid TEXT, enabled INT, zipcode TEXT, aim TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [DV7o4vOa] DONE: Took 0.000939130783081 real time / 0.000381 processor time [2016-01-15 15:08:22 | GamespyDatabase] [uAAOFQe7] STARTING: CREATE TABLE IF NOT EXISTS sessions (session TEXT, profileid INT, loginticket TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [uAAOFQe7] DONE: Took 2.98023223877e-05 real time / 2.8e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [ZxRxtNd7] STARTING: CREATE TABLE IF NOT EXISTS buddies (userProfileId INT, buddyProfileId INT, time INT, status INT, notified INT, gameid TEXT, blocked INT) [2016-01-15 15:08:22 | GamespyDatabase] [ZxRxtNd7] DONE: Took 3.09944152832e-05 real time / 3e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [GmjLdBlD] STARTING: CREATE TABLE IF NOT EXISTS pending_messages (sourceid INT, targetid INT, msg TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [GmjLdBlD] DONE: Took 2.98023223877e-05 real time / 2.9e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [wLG9P6m6] STARTING: CREATE TABLE IF NOT EXISTS gamestat_profile (profileid INT, dindex TEXT, ptype TEXT, data TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [wLG9P6m6] DONE: Took 2.98023223877e-05 real time / 2.9e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [bpME09mX] STARTING: CREATE TABLE IF NOT EXISTS gameinfo (profileid INT, dindex TEXT, ptype TEXT, data TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [bpME09mX] DONE: Took 3.09944152832e-05 real time / 3e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [eRQjGrPD] STARTING: CREATE TABLE IF NOT EXISTS nas_logins (userid TEXT, authtoken TEXT, data TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [eRQjGrPD] DONE: Took 3.00407409668e-05 real time / 2.9e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [2wmZ0qZi] STARTING: CREATE TABLE IF NOT EXISTS banned (gameid TEXT, ipaddr TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [2wmZ0qZi] DONE: Took 2.90870666504e-05 real time / 2.8e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [HXtQikKT] STARTING: CREATE TABLE IF NOT EXISTS pending (macadr TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [HXtQikKT] DONE: Took 2.88486480713e-05 real time / 2.7e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [AZ3RYbV2] STARTING: CREATE TABLE IF NOT EXISTS registered (macadr TEXT) [2016-01-15 15:08:22 | GamespyDatabase] [AZ3RYbV2] DONE: Took 2.78949737549e-05 real time / 2.6e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [cbZgFHSx] STARTING: CREATE UNIQUE INDEX IF NOT EXISTS gamestatprofile_triple ON gamestat_profile(profileid,dindex,ptype) [2016-01-15 15:08:22 | GamespyDatabase] [cbZgFHSx] DONE: Took 3.50475311279e-05 real time / 3.4e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [8bGIKWym] STARTING: CREATE UNIQUE INDEX IF NOT EXISTS users_profileid_idx ON users (profileid) [2016-01-15 15:08:22 | GamespyDatabase] [8bGIKWym] DONE: Took 2.90870666504e-05 real time / 2.8e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [9vT8wSdy] STARTING: CREATE INDEX IF NOT EXISTS users_userid_idx ON users (userid) [2016-01-15 15:08:22 | GamespyDatabase] [9vT8wSdy] DONE: Took 2.90870666504e-05 real time / 2.8e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [Pf2si3Fw] STARTING: CREATE INDEX IF NOT EXISTS pending_messages_targetid_idx ON pending_messages (targetid) [2016-01-15 15:08:22 | GamespyDatabase] [Pf2si3Fw] DONE: Took 3.00407409668e-05 real time / 2.8e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [5GAi024A] STARTING: CREATE UNIQUE INDEX IF NOT EXISTS sessions_session_idx ON sessions (session) [2016-01-15 15:08:22 | GamespyDatabase] [5GAi024A] DONE: Took 3.2901763916e-05 real time / 3.1e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [TOAPgdAb] STARTING: CREATE INDEX IF NOT EXISTS sessions_loginticket_idx ON sessions (loginticket) [2016-01-15 15:08:22 | GamespyDatabase] [TOAPgdAb] DONE: Took 2.90870666504e-05 real time / 2.8e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [RAxSDx36] STARTING: CREATE INDEX IF NOT EXISTS sessions_profileid_idx ON sessions (profileid) [2016-01-15 15:08:22 | GamespyDatabase] [RAxSDx36] DONE: Took 2.90870666504e-05 real time / 2.7e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [Tfj52gpy] STARTING: CREATE UNIQUE INDEX IF NOT EXISTS nas_logins_authtoken_idx ON nas_logins (authtoken) [2016-01-15 15:08:22 | GamespyDatabase] [Tfj52gpy] DONE: Took 2.90870666504e-05 real time / 2.8e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [Iv947EAP] STARTING: CREATE INDEX IF NOT EXISTS nas_logins_userid_idx ON nas_logins (userid) [2016-01-15 15:08:22 | GamespyDatabase] [Iv947EAP] DONE: Took 3.09944152832e-05 real time / 3e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [XSmxLfNB] STARTING: CREATE INDEX IF NOT EXISTS buddies_userProfileId_idx ON buddies (userProfileId) [2016-01-15 15:08:22 | GamespyDatabase] [XSmxLfNB] DONE: Took 2.8133392334e-05 real time / 2.6e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [ZbwXD7ZJ] STARTING: CREATE INDEX IF NOT EXISTS buddies_buddyProfileId_idx ON buddies (buddyProfileId) [2016-01-15 15:08:22 | GamespyDatabase] [ZbwXD7ZJ] DONE: Took 2.69412994385e-05 real time / 2.6e-05 processor time [2016-01-15 15:08:22 | GamespyDatabase] [zhKfMa03] STARTING: CREATE INDEX IF NOT EXISTS gamestat_profile_profileid_idx ON gamestat_profile (profileid) [2016-01-15 15:08:22 | GamespyDatabase] [zhKfMa03] DONE: Took 3.79085540771e-05 real time / 3.6e-05 processor time [2016-01-15 15:08:22 | GamespyBackendServer] Started server on 127.0.0.1:27500... [2016-01-15 15:08:22 | GameSpyProfileServer] Now listening for connections on 0.0.0.0:29900... [2016-01-15 15:08:22 | GameSpyPlayerSearchServer] Now listening for player search connections on 0.0.0.0:29901... [2016-01-15 15:08:22 | GameSpyGamestatsServer] Now listening for connections on 0.0.0.0:29920... [2016-01-15 15:08:22 | GameSpyQRServer] Server is now listening on 0.0.0.0:27900... [2016-01-15 15:08:22 | GameSpyServerBrowserServer] Now listening for connections on 0.0.0.0:28910... [2016-01-15 15:08:22 | GameSpyNatNegServer] Server is now listening on 0.0.0.0:27901... [2016-01-15 15:08:22 | NasServer] Now listening for connections on 127.0.0.1:9000... [2016-01-15 15:08:22 | AdminPage] Now listening for connections on port 9009... [2016-01-15 15:08:22 | RegisterPage] Now listening for connections on port 9998... [2016-01-15 15:08:22 | StorageServer] Checking for and creating database tables... [2016-01-15 15:08:22 | GameStatsServerHttp] Now listening for connections on 127.0.0.1:9002... [2016-01-15 15:08:22 | StorageServer] Now listening for connections on 127.0.0.1:8000...

kyle95wm commented 8 years ago

Looks like the server started up correctly. So now it's a matter of finding out if the AWS firewall or your UFW is blocking any sort of connections. In my repository for the script I also have a UFW script to open the needed ports.

If you add my skype - mr.bean35000vrjr we could perhaps work this out much more efficiently. Maybe I could give you my public SSH key for access in case I need it.

RiccardoRoscilli commented 8 years ago

added on skype...

RiccardoRoscilli commented 8 years ago

By the way, I think it's not a matter of firewall since all the ports are open with the server security group and iptables accept everything. just tried with my console logging on the server with tcpdump and here is the log: 16:38:51.583381 IP ip-172-31-34-146.eu-west-1.compute.internal.domain > ip-9-159.sn-212-90.eutelia.it.3699: 54389 Refused- 0/0/0 (43) 16:38:53.419725 IP ip-9-159.sn-212-90.eutelia.it.3700 > ip-172-31-34-146.eu-west-1.compute.internal.domain: 53439+ A? conntest.nintendowifi.net. (43) 16:38:53.419895 IP ip-172-31-34-146.eu-west-1.compute.internal.domain > ip-9-159.sn-212-90.eutelia.it.3700: 53439 Refused- 0/0/0 (43) 16:38:55.300062 IP ip-9-159.sn-212-90.eutelia.it.3701 > ip-172-31-34-146.eu-west-1.compute.internal.domain: 54389+ A? conntest.nintendowifi.net. (43) 16:38:55.300242 IP ip-172-31-34-146.eu-west-1.compute.internal.domain > ip-9-159.sn-212-90.eutelia.it.3701: 54389 Refused- 0/0/0 (43) 16:38:57.187984 IP ip-9-159.sn-212-90.eutelia.it.3702 > ip-172-31-34-146.eu-west-1.compute.internal.domain: 53439+ A? conntest.nintendowifi.net. (43) 16:38:57.188158 IP ip-172-31-34-146.eu-west-1.compute.internal.domain > ip-9-159.sn-212-90.eutelia.it.3702: 53439 Refused- 0/0/0 (43) 16:38:59.063896 IP ip-9-159.sn-212-90.eutelia.it.3703 > ip-172-31-34-146.eu-west-1.compute.internal.domain: 54389+ A? conntest.nintendowifi.net. (43) 16:38:59.064118 IP ip-172-31-34-146.eu-west-1.compute.internal.domain > ip-9-159.sn-212-90.eutelia.it.3703: 54389 Refused- 0/0/0 (43) 16:39:00.951788 IP ip-9-159.sn-212-90.eutelia.it.3704 > ip-172-31-34-146.eu-west-1.compute.internal.domain: 53439+ A? conntest.nintendowifi.net. (43) 16:39:00.951962 IP ip-172-31-34-146.eu-west-1.compute.internal.domain > ip-9-159.sn-212-90.eutelia.it.3704: 53439 Refused- 0/0/0 (43) 16:39:06.870583 ARP, Request who-has ip-172-31-34-146.eu-west-1.compute.internal tell ip-172-31-32-1.eu-west-1.compute.internal, length 46

love6985 commented 8 years ago

hope your server can support pkm black&white2 Wifi-club (active through friend code). wait for release.

RiccardoRoscilli commented 8 years ago

sorry, but don't know exactly what you are talking about. If this emulator supports it, it will supported. In the mean time I rebooted the server and give it a static IP so if you want to give a try put this in you nindendo config 52.30.155.244

kyle95wm commented 8 years ago

should we consider this as solved?

RiccardoRoscilli commented 8 years ago

even if still cannot play with my ds and mario kart, yes the server is up and running on 52.48.186.241 enjoy