maidx Unable to Connect to artemis's allnet #162

Closed
opened 2024-07-07 12:00:13 +00:00 by GoldSheep3 · 2 comments

maidx Unable to Connect to artemis's allnet

After several days of trying, I still haven't been able to solve this issue on my own. I apologize for having to ask here and thank you for your assistance. Since my English is not very good, I will use ChatGPT to translate my query into English.

Here's the situation:
I have a Windows PC and two Linux servers (referred to as cl and sxn). The PC and cl are on internal networks, while sxn has a public IPv4 154.3.1.94 that can be accessed (and the domain console.mcsm.ciane.cn is mapped to this IPv4 address through an A record).
The PC's internal IP is 192.168.0.105, and cl's internal IP is 192.168.31.188. These two devices are not on the same internal network.
My artemis is set up on the cl server and connected to sxn through frp.
cl, ~/frpc_0.58.1_linux_amd64/frpc.toml

serverAddr = "154.3.1.94"
serverPort = 8888

[[proxies]]
name = "8080t"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8080
remotePort = 8080
[[proxies]]
name = "8080u"
type = "udp"
localIP = "127.0.0.1"
localPort = 8080
remotePort = 8080

[[proxies]]
name = "22345t"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22345
remotePort = 22345
[[proxies]]
name = "22345u"
type = "udp"
localIP = "127.0.0.1"
localPort = 22345
remotePort = 22345

[[proxies]]
name = "80t"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 80
[[proxies]]
name = "80u"
type = "udp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 80

PC, segatools.ini (partial)

[dns]
default=console.mcsm.ciane.cn

[netenv]
enable=1
addrSuffix=11

After starting start.bat, this is the log content from cl:

goldsheep3@cl-ubuntu:~/sinm/artemis$ sudo ../venv/bin/python index.py
[sudo] password for goldsheep3: 
[2024-07-07 11:49:30] Core | INFO | ARTEMiS starting in develop mode
[2024-07-07 11:49:31] IDAC | INFO | Matching listening on 20000 with echos on 20001 and 20002
[2024-07-07 11:49:31] Title | INFO | Serving 19 game codes on port 8080
[2024-07-07 11:49:31] Allnet | INFO | Serving 19 game codes port 80
[2024-07-07 11:49:31] Mucha | INFO | Serving 2 games
[2024-07-07 11:49:31] Aimedb | INFO | Ready on port 22345
[2024-07-07 11:51:04] Allnet | DEBUG | Allnet request: {'game_id': 'SDEZ', 'ver': '1.40', 'serial': 'A69E01A8888', 'ip': '154.3.1.94', 'firm_ver': '50000', 'boot_ver': '0000', 'encode': 'UTF-8', 'hops': 1, 'format_ver': 3.0, 'token': '1716953623'}
[2024-07-07 11:51:04] Allnet | INFO | A69E01A8888 authenticated from 127.0.0.1: SDEZ v1.40
[2024-07-07 11:51:04] Allnet | DEBUG | Allnet response: {'stat': 1, 'uri': 'http://192.168.31.188:8080/140/', 'host': '192.168.31.188', 'place_id': '0123', 'name': 'ARTEMiS', 'nickname': 'ARTEMiS', 'region0': '1', 'region_name0': 'W', 'region_name1': '', 'region_name2': '', 'region_name3': '', 'setting': '1', 'country': 'JPN', 'allnet_id': '123', 'client_timezone': '+0900', 'utc_time': '2024-07-07T11:51:04Z', 'res_ver': '3', 'token': '1716953623'}

Here is cl, ~/sinm/artemis/config/core.yaml

server:
  listen_address: "0.0.0.0"
  allow_user_registration: True
  allow_unregistered_serials: True
  name: "ARTEMiS"
  is_develop: True
  is_using_proxy: False
  threading: False
  log_dir: "logs"
  check_arcade_ip: False
  strict_ip_checking: False

title:
  loglevel: "debug"
  hostname: "192.168.31.188"
  port: 8080
  port_ssl: 0
  ssl_cert: "cert/title.crt"
  ssl_key: "cert/title.key"
  reboot_start_time: ""
  reboot_end_time: ""

database:
  host: "localhost"
  username: "aime"
  password: "<password>"
  name: "aime"
  port: 3306
  protocol: "mysql"
  sha2_password: False
  loglevel: "warn"
  user_table_autoincrement_start: 10000
  enable_memcached: True
  memcached_host: "localhost"

frontend:
  enable: False
  port: 8090
  loglevel: "info"

allnet:
  loglevel: "debug"
  port: 80
  ip_check: False
  allow_online_updates: False
  update_cfg_folder: ""

billing:
  port: 8443
  ssl_key: "cert/server.key"
  ssl_cert: "cert/server.pem"
  signing_key: "cert/billing.key"

aimedb:
  enable: True
  listen_address: ""
  loglevel: "debug"
  port: 22345
  key: "****************"
  id_secret: ""
  id_lifetime_seconds: 86400

mucha:
  enable: False
  hostname: "localhost"
  loglevel: "info"

cl, ~/sinm/artemis/config/mai2.yaml

server:
  enable: True
  loglevel: "debug"

deliver:
  enable: False
  udbdl_enable: False
  content_folder: ""

uploads:
  photos: False
  photos_dir: ""
  movies: False
  movies_dir: ""

When starting sinmai.exe, it prompts "All.Net BAD," and the network icon is gray.
Please let me know if you need additional information from other files!

## maidx Unable to Connect to artemis's allnet After several days of trying, I still haven't been able to solve this issue on my own. I apologize for having to ask here and thank you for your assistance. Since my English is not very good, I will use ChatGPT to translate my query into English. Here's the situation: I have a Windows PC and two Linux servers (referred to as cl and sxn). The PC and cl are on internal networks, while sxn has a public IPv4 `154.3.1.94` that can be accessed (and the domain `console.mcsm.ciane.cn` is mapped to this IPv4 address through an A record). The PC's internal IP is `192.168.0.105`, and cl's internal IP is `192.168.31.188`. These two devices are not on the same internal network. My artemis is set up on the cl server and connected to sxn through frp. `cl, ~/frpc_0.58.1_linux_amd64/frpc.toml` ```toml serverAddr = "154.3.1.94" serverPort = 8888 [[proxies]] name = "8080t" type = "tcp" localIP = "127.0.0.1" localPort = 8080 remotePort = 8080 [[proxies]] name = "8080u" type = "udp" localIP = "127.0.0.1" localPort = 8080 remotePort = 8080 [[proxies]] name = "22345t" type = "tcp" localIP = "127.0.0.1" localPort = 22345 remotePort = 22345 [[proxies]] name = "22345u" type = "udp" localIP = "127.0.0.1" localPort = 22345 remotePort = 22345 [[proxies]] name = "80t" type = "tcp" localIP = "127.0.0.1" localPort = 80 remotePort = 80 [[proxies]] name = "80u" type = "udp" localIP = "127.0.0.1" localPort = 80 remotePort = 80 ``` `PC, segatools.ini` (partial) ```ini [dns] default=console.mcsm.ciane.cn [netenv] enable=1 addrSuffix=11 ``` After starting `start.bat`, this is the log content from `cl`: ``` goldsheep3@cl-ubuntu:~/sinm/artemis$ sudo ../venv/bin/python index.py [sudo] password for goldsheep3: [2024-07-07 11:49:30] Core | INFO | ARTEMiS starting in develop mode [2024-07-07 11:49:31] IDAC | INFO | Matching listening on 20000 with echos on 20001 and 20002 [2024-07-07 11:49:31] Title | INFO | Serving 19 game codes on port 8080 [2024-07-07 11:49:31] Allnet | INFO | Serving 19 game codes port 80 [2024-07-07 11:49:31] Mucha | INFO | Serving 2 games [2024-07-07 11:49:31] Aimedb | INFO | Ready on port 22345 [2024-07-07 11:51:04] Allnet | DEBUG | Allnet request: {'game_id': 'SDEZ', 'ver': '1.40', 'serial': 'A69E01A8888', 'ip': '154.3.1.94', 'firm_ver': '50000', 'boot_ver': '0000', 'encode': 'UTF-8', 'hops': 1, 'format_ver': 3.0, 'token': '1716953623'} [2024-07-07 11:51:04] Allnet | INFO | A69E01A8888 authenticated from 127.0.0.1: SDEZ v1.40 [2024-07-07 11:51:04] Allnet | DEBUG | Allnet response: {'stat': 1, 'uri': 'http://192.168.31.188:8080/140/', 'host': '192.168.31.188', 'place_id': '0123', 'name': 'ARTEMiS', 'nickname': 'ARTEMiS', 'region0': '1', 'region_name0': 'W', 'region_name1': '', 'region_name2': '', 'region_name3': '', 'setting': '1', 'country': 'JPN', 'allnet_id': '123', 'client_timezone': '+0900', 'utc_time': '2024-07-07T11:51:04Z', 'res_ver': '3', 'token': '1716953623'} ``` Here is `cl, ~/sinm/artemis/config/core.yaml` ```yaml server: listen_address: "0.0.0.0" allow_user_registration: True allow_unregistered_serials: True name: "ARTEMiS" is_develop: True is_using_proxy: False threading: False log_dir: "logs" check_arcade_ip: False strict_ip_checking: False title: loglevel: "debug" hostname: "192.168.31.188" port: 8080 port_ssl: 0 ssl_cert: "cert/title.crt" ssl_key: "cert/title.key" reboot_start_time: "" reboot_end_time: "" database: host: "localhost" username: "aime" password: "<password>" name: "aime" port: 3306 protocol: "mysql" sha2_password: False loglevel: "warn" user_table_autoincrement_start: 10000 enable_memcached: True memcached_host: "localhost" frontend: enable: False port: 8090 loglevel: "info" allnet: loglevel: "debug" port: 80 ip_check: False allow_online_updates: False update_cfg_folder: "" billing: port: 8443 ssl_key: "cert/server.key" ssl_cert: "cert/server.pem" signing_key: "cert/billing.key" aimedb: enable: True listen_address: "" loglevel: "debug" port: 22345 key: "****************" id_secret: "" id_lifetime_seconds: 86400 mucha: enable: False hostname: "localhost" loglevel: "info" ``` `cl, ~/sinm/artemis/config/mai2.yaml` ```yaml server: enable: True loglevel: "debug" deliver: enable: False udbdl_enable: False content_folder: "" uploads: photos: False photos_dir: "" movies: False movies_dir: "" ``` When starting `sinmai.exe`, it prompts "All.Net BAD," and the network icon is gray. Please let me know if you need additional information from other files!
Collaborator

Only thing that comes in mind is either you have encryption enabled and/or HTTPS within the game or the other thing could be that your allnet url isn't reachable from the second device ( http://192.168.31.188:8080/140/ in your case )

The settings seems fine by looking at it otherwise

Only thing that comes in mind is either you have encryption enabled and/or HTTPS within the game or the other thing could be that your allnet url isn't reachable from the second device ( http://192.168.31.188:8080/140/ in your case ) The settings seems fine by looking at it otherwise
Owner

Closing as stale

Closing as stale
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hay1tsme/artemis#162
No description provided.