altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 16 forks source link

Connection failed: Refused by server #2034

Closed IntarialN closed 1 year ago

IntarialN commented 1 year ago

Description of the problem

I'm trying to connect to a local alt:V server using the IP 127.0.0.1:7788, but I'm unable to connect. I've checked port 7788 using netstat and Task Manager, and it's only owned by altv-server.exe.

Here's the connection log:

[13:34:47] HTTP Debug Server started listening on 127.0.0.1:9223 [13:34:58] Game initialized [13:34:58] alt:V initialized [13:34:58] Game initialized [13:34:58] Game configuration data set up [13:34:58] Game configuration data set up [13:34:59] GPU Vendor: 10de [13:35:00] Game path: D:\GTAV [13:35:00] Client path: C:\Users\prost\AppData\Local\altv [13:35:00] Game version: 2944 on EGS [13:35:01] [WEB] Remote debugging port set to 9222 [13:35:01] [WEB] Initialized Web API [13:35:01] Creating WEB View: http://ui/index.html [13:35:01] CreateBrowser http://ui/index.html true [13:35:01] OnAfterCreated http://ui/index.html false [13:35:01] Some issue is occurring with CEF size [13:35:01] CreateEnumeratorFromKey [13:35:01] MoveNext 0 false [13:35:01] OnBeforeBrowse http://ui/index.html [13:35:01] OnLoadStart http://ui/index.html [13:35:01] loaded call [13:35:01] emitting ready [13:35:02] OnLoadEnd http://ui/index.html false [13:35:02][Warning] System update WebApp took too much time to execute. 619 ms [13:35:02] [object Proxy] [13:35:02] [object Proxy] [13:35:06] HTTP request from 127.0.0.1 GET / [13:35:06] HTTP request from 127.0.0.1 GET /favicon.ico [13:35:06] HTTP request from 127.0.0.1 GET /favicon.ico [13:35:08] HTTP request from 127.0.0.1 GET / [13:35:08] HTTP request from 127.0.0.1 GET / [13:35:36] HTTP request from 127.0.0.1 GET / [13:35:43] HTTP request from 127.0.0.1 GET /favicon.ico [13:36:44] Connecting to 127.0.0.1 7788 [13:36:44][Warning] System update WebApp took too much time to execute. 22 ms [13:36:44] Downloaded and validated resource chat successfully [13:36:44] Finished downloading all resources [13:36:44] Download finished [13:36:46] All natives DLC packs preloaded [13:37:21][Warning] System update CTheScripts took too much. 138 ms [13:37:21][Warning] System update SCRIPT took too much. 138 ms [13:37:21][Warning] System update Audio took too much. 16 ms [13:37:22] Loaded font face 'rmlui-debugger-font' [regular] from 'memory'. [13:37:22] Loaded font face 'rmlui-debugger-font' [italic] from 'memory'. [13:37:22] Loaded font face 'rmlui-fallback-font' [regular] from 'memory'. [13:37:22] Loaded font face 'rmlui-fallback-font' [italic] from 'memory'. [13:37:24] alt:V Multiplayer started [13:37:24] Started in 158054 ms

[13:37:24][Warning] System update CTheScripts took too much. 2763 ms [13:37:24][Warning] System update SCRIPT took too much. 2763 ms [13:37:24][Error] Connection failed: Refused by server [13:37:25][Warning] System update CNetwork took too much. 11 ms [13:45:53][Warning] System update UNKNOWN took too much. 21 ms

These are my server settings:

announce = false

description = 'test' website = 'test.com' gamemode = 'Freeroam'

language = 'en' modules = [ 'js-module' ] name = 'test' players = 1024 port = 7788 tags = [ 'customTag1', 'customTag2', 'customTag3', 'customTag4' ]

resources = [ 'chat' ]

debug = true

host = '0.0.0.0'

[js-module] global-webcrypto = true global-fetch = true

[voice] bitrate = 64000

It seems like your server is initializing correctly, but there might be an issue with the connection. You should check if there are any firewall rules blocking the connection, and also ensure that the server IP and port are correctly configured in your client. If the issue persists, consider contacting the server administrator for further assistance.

Reproduction steps

Start the server. Connect using the IP 127.0.0.1. Receive an error.

Expected behaviour

Start the server. Connect using the IP 127.0.0.1. Success connection.

Additional context

No response

Operating system

Windows 11

Version

15.0-dev647 (dev)

Crashdump ID

No response

Reproduction tested

deluvas1911 commented 1 year ago

Use a recent version and not dev647, we are on 691