{"id":190367,"date":"2025-06-10T13:33:10","date_gmt":"2025-06-10T11:33:10","guid":{"rendered":"https:\/\/fivemx.com\/?p=190367"},"modified":"2026-08-16T13:44:41","modified_gmt":"2026-08-16T11:44:41","slug":"fivem-connection-failed-diagnostic-and-resolution-guide","status":"publish","type":"post","link":"https:\/\/fivemx.com\/pl\/fivem-connection-failed-diagnostic-and-resolution-guide\/","title":{"rendered":"FiveM Po\u0142\u0105czenie nieudane: Przewodnik diagnostyczny i naprawczy"},"content":{"rendered":"<p class=\"wp-block-paragraph\">B\u0142\u0119dy po\u0142\u0105czenia FiveM wyst\u0119puj\u0105 podczas uzgadniania TCP (30120), inicjalizacji strumienia UDP (30110-30125) lub przekroczenia limitu czasu uwierzytelniania z serwerami nucleus. B\u0142\u0105d objawia si\u0119 jako <code data-no-translation=\"\">Failed to connect to server: Connection timed out<\/code> po 15-sekundowym progu.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ramy diagnostyczne<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Walidacja \u015bcie\u017cki sieciowej<\/li>\n\n\n\n<li>Potwierdzenie dost\u0119pno\u015bci serwera<\/li>\n\n\n\n<li>Eliminacja zak\u0142\u00f3ce\u0144 po stronie klienta<\/li>\n\n\n\n<li>Weryfikacja \u0142a\u0144cucha uwierzytelniania<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/fivemx.com\/pl\/fivem-hosting-provider-comparison\/\" data-type=\"post\" data-id=\"59849\"><strong>Je\u015bli jeste\u015b w\u0142a\u015bcicielem serwera, upewnij si\u0119, \u017ce hostujesz go na dobrym ho\u015bcie.<\/strong><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Test dost\u0119pno\u015bci portu<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:: TCP connectivity\npowershell -command \"Test-NetConnection -ComputerName serverip -Port 30120\"\n\n:: UDP requires nmap\nnmap -sU -p 30110-30125 serverip\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Oczekiwane: <code data-no-translation=\"\">TcpTestSucceeded: True<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Analiza traceroute<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pathping -n -q 10 -p 250 serverip\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Utrata pakiet\u00f3w &gt;5% na dowolnym przeskoku wskazuje na problem z routingiem ISP.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Weryfikacja rozpoznawania DNS<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nslookup serverdomain\nnslookup serverdomain 8.8.8.8\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Niezgodne wyniki wskazuj\u0105 na zatrucie DNS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Regu\u0142y zapory systemu Windows<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">New-NetFirewallRule -DisplayName \"FiveM TCP\" -Direction Outbound -Protocol TCP -LocalPort 30120 -Action Allow\nNew-NetFirewallRule -DisplayName \"FiveM UDP\" -Direction Outbound -Protocol UDP -LocalPort 30110-30125 -Action Allow\nNew-NetFirewallRule -DisplayName \"FiveM Inbound\" -Direction Inbound -Protocol UDP -LocalPort 30110-30125 -Action Allow\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Naprawa zak\u0142\u00f3ce\u0144 IPv6<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:: Disable IPv6 for FiveM\nnetsh int ipv6 set prefixpolicy ::ffff:0:0\/96 46 4\nnetsh int ipv6 set prefixpolicy ::1\/128 45 4\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Reset Winsock<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">netsh winsock reset catalog\nnetsh int ip reset reset.log\nipconfig \/flushdns\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">1. Widoczno\u015b\u0107 punkt\u00f3w ko\u0144cowych<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- server.cfg\nset sv_endpointprivacy false\nset sv_listingIPOverride \"serverip:30120\"\nset sv_forceIndirectListing true\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Zarz\u0105dzanie kolejk\u0105 po\u0142\u0105cze\u0144<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- Increase slots and timeout\nset sv_maxClients 128\nset sv_connectTimeout 300\nset sv_authMaxRetries 10\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Regulacja ogranicze\u0144 pr\u0119dko\u015bci<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- Prevent false positive DoS detection\nset sv_requestParanoia 0\nset sv_rateLimit 0\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u0141\u0105czno\u015b\u0107 serwera Nucleus<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:: Test Cfx.re services\ncurl -I https:\/\/servers-frontend.fivem.net\/api\/servers\/single\/serverid\ncurl -I https:\/\/nucleus.cfx.re\/\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Wymagane HTTP 200 dla obu.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Walidacja klucza licencyjnego<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- server.cfg\nset sv_licenseKey \"cfxk_your_32_char_key\"\nrestart sessionmanager\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Uszkodzenie pami\u0119ci podr\u0119cznej<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:: Client-side nucleus cache\nrmdir \/s \/q \"%appdata%CitizenFXkvs\"\ndel \"%localappdata%FiveMFiveM.appcaches.xml\"\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">1. Omini\u0119cie CGNAT<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:: Force IPv4 stack\nnetsh int ipv6 6to4 set state disabled\nnetsh int ipv6 isatap set state disabled\nnetsh int ipv6 set teredo disabled\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Odkrywanie MTU<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:: Find optimal MTU\nping -f -l 1500 serverip\n:: Decrease by 28 until successful\nnetsh int ipv4 set subinterface \"Ethernet\" mtu=1472 store=persistent\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Alternatywna konfiguracja port\u00f3w<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">W\u0142a\u015bciciel serwera musi skonfigurowa\u0107:<\/p>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- server.cfg\nendpoint_add_tcp \"0.0.0.0:30121\"\nendpoint_add_udp \"0.0.0.0:30121\"\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Klient \u0142\u0105czy si\u0119 za pomoc\u0105: <code data-no-translation=\"\">connect serverip:30121<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Analiza przechwytywania pakiet\u00f3w<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:: Wireshark filter\ntcp.port == 30120 or udp.port >= 30110 and udp.port &lt;= 30125\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Szukaj pakiet\u00f3w RST lub brakuj\u0105cych ACK.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Monitorowanie stanu po\u0142\u0105czenia<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- F8 console during connection\nnetstats 1\nnetgraph 1\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Problemy z certyfikatami TLS<\/h3>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:: Verify certificate chain\nopenssl s_client -connect servers-frontend.fivem.net:443 -servername servers-frontend.fivem.net\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Konflikty VPN<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Wy\u0142\u0105cz dzielone tunelowanie<\/li>\n\n\n\n<li>Wyklucz FiveM z VPN:<\/li>\n<\/ul>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">route add serverip mask 255.255.255.255 192.168.1.1\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Sieci uniwersyteckie\/korporacyjne<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Popro\u015b o wyj\u0105tki w zaporze dla:\n<ul class=\"wp-block-list\">\n<li>TCP 30120 wychodz\u0105cy<\/li>\n\n\n\n<li>UDP 30110-30125 dwukierunkowy<\/li>\n\n\n\n<li>TCP 443 do nucleus.cfx.re<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Ograniczenia hotspotu mobilnego<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>NAT operatora blokuje P2P<\/li>\n\n\n\n<li>U\u017cyj punktu ko\u0144cowego tylko TCP:<\/li>\n<\/ul>\n\n\n\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">connect serverip:30120+tcp\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Niepewno\u015bci<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cloudflare Workers okresowo blokuj\u0105 wywo\u0142ania API FiveM (fa\u0142szywie pozytywne wykrywanie bot\u00f3w)<\/li>\n\n\n\n<li>Us\u0142uga Network Location Awareness w Windows 11 mo\u017ce wymaga\u0107 r\u0119cznego restartu<\/li>\n\n\n\n<li>Niekt\u00f3re modemy Xfinity po cichu odrzucaj\u0105 pakiety UDP &gt;1400 bajt\u00f3w<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Odniesienie do standard\u00f3w<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>RFC 4787 (Wymagania dotycz\u0105ce zachowania NAT)<\/li>\n\n\n\n<li>Specyfikacja protoko\u0142u CitizenFX v2.4.1<\/li>\n\n\n\n<li>Strumieniowanie UDP podobne do QUIC (niestandardowa implementacja)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Wnioski:<\/strong> Problemy z po\u0142\u0105czeniem wynikaj\u0105 z zablokowanych port\u00f3w, niezgodno\u015bci MTU lub przekroczenia czasu uwierzytelniania, co wymaga systematycznej walidacji \u015bcie\u017cki sieciowej.<\/p>\n\n\n<!-- fivemx-quality-enrichment-v2 -->\n<h2>Powi\u0105zane zasoby<\/h2><!-- fivemx-quality-depth-v3 -->\n<h2>Oficjalne odniesienia i dalsze kroki<\/h2>\n<p>Skorzystaj z tych oficjalnych odniesie\u0144, aby zweryfikowa\u0107 kroki techniczne przed zmian\u0105 na dzia\u0142aj\u0105cym serwerze FiveM.<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.fivem.net\/docs\/client-manual\/console-commands\/\" rel=\"nofollow noopener\" target=\"_blank\">Polecenia konsoli Cfx.re<\/a><\/li>\n<li><a href=\"https:\/\/docs.fivem.net\/docs\/support\/client-issues\/\" rel=\"nofollow noopener\" target=\"_blank\">Problemy z klientem Cfx.re<\/a><\/li>\n<li><a href=\"https:\/\/docs.fivem.net\/docs\/server-manual\/proxy-setup\/\" rel=\"nofollow noopener\" target=\"_blank\">Konfiguracja proxy Cfx.re<\/a><\/li>\n<\/ul>\n<p>Powi\u0105zane przewodniki FiveMX:<\/p>\n<ul>\n<li><a href=\"https:\/\/cfxfind.com\/\" target=\"_blank\" rel=\"noopener\">FiveM wyszukiwarka IP serwera<\/a><\/li>\n<li><a href=\"https:\/\/fivemx.com\/pl\/how-to-clear-fivem-cache\/\">wyczy\u015b\u0107 pami\u0119\u0107 podr\u0119czn\u0105 FiveM<\/a><\/li>\n<li><a href=\"https:\/\/fivemx.com\/pl\/fivem-crash-help\/\">Pomoc przy awarii FiveM<\/a><\/li>\n<\/ul>\n<!-- \/fivemx-blog-trust-wave2 -->","protected":false},"excerpt":{"rendered":"<p>FiveM connection failures occur at TCP handshake (30120), UDP stream initialization (30110-30125), or authentication timeout with nucleus servers. Error presents as Failed to connect to server: Connection timed out after 15-second threshold. Diagnostic Framework If you are server-owner, make sure to host your server on a good host. 1. Port Accessibility Test Expected: TcpTestSucceeded: True [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":190368,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1900],"tags":[],"class_list":["post-190367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/posts\/190367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/comments?post=190367"}],"version-history":[{"count":4,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/posts\/190367\/revisions"}],"predecessor-version":[{"id":217329,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/posts\/190367\/revisions\/217329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media\/190368"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media?parent=190367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/categories?post=190367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/tags?post=190367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}