{"id":164,"date":"2023-12-06T12:46:47","date_gmt":"2023-12-06T12:46:47","guid":{"rendered":"https:\/\/howtogeek.blog\/pl\/?p=164"},"modified":"2023-12-06T12:46:47","modified_gmt":"2023-12-06T12:46:47","slug":"how-to-change-rdp-port-in-windows-server-pl","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/pl\/how-to-change-rdp-port-in-windows-server-pl\/","title":{"rendered":"Jak zmieni\u0107 port RDP w systemie Windows Server?"},"content":{"rendered":"<p><span data-preserver-spaces=\"true\">Poniewa\u017c coraz wi\u0119cej os\u00f3b korzysta ze zdalnych serwer\u00f3w, hakerom \u0142atwiej jest w\u0142ama\u0107 si\u0119 do systemu poprzez port RDP. Domy\u015blny numer portu to 3389 i wi\u0119kszo\u015b\u0107 ludzi utrzymuje go bez zmian, nie czuj\u0105c potrzeby jego zmiany. Teraz ten domy\u015blny port RDP jest ju\u017c na radarze haker\u00f3w i zawsze pr\u00f3buj\u0105 uzyska\u0107 za jego po\u015brednictwem dost\u0119p do zdalnych komputer\u00f3w.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Gdy hakerzy wkrocz\u0105, Tw\u00f3j komputer b\u0119dzie podatny na ich ataki i mog\u0105 ukra\u015b\u0107 Twoje dane, \u015bledzi\u0107 Twoj\u0105 aktywno\u015b\u0107 w Internecie i robi\u0107 rzeczy, o kt\u00f3rych nawet nie mo\u017cna pomy\u015ble\u0107. Aby tego unikn\u0105\u0107, mo\u017cesz zmieni\u0107 domy\u015blny numer portu RDP dla <u data-wpel-link=\"internal\">Windows Server<\/u> na inny. <\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Ale co da zmiana portu RDP? Haker zawsze bierze pod uwag\u0119 port RDP 3389, poniewa\u017c jest to port domy\u015blny. Ale je\u015bli Tw\u00f3j port RDP zostanie zmieniony i ustawiony na inny wolny port, b\u0119dzie im trudno dowiedzie\u0107 si\u0119, jaki jest Tw\u00f3j port RDP i uzyska\u0107 dost\u0119p do komputera. W tym artykule dowiesz si\u0119, jak zmieni\u0107 port RDP dla serwera Windows.<\/span><\/p>\n<h2><span id=\"Ways_to_Change_RDP_Port_for_a_Windows_Server\"><strong><span data-preserver-spaces=\"true\">Sposoby zmiany portu RDP dla serwera Windows<\/span><\/strong><\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Istnieje wiele sposob\u00f3w zmiany portu RDP dla systemu Windows Server. Cho\u0107 proces ten jest do\u015b\u0107 \u0142atwy, nale\u017cy zachowa\u0107 przy tym ostro\u017cno\u015b\u0107. Wykonaj kroki podane poni\u017cej, aby zmieni\u0107 port RDP-<\/span><\/p>\n<h3><span id=\"1_Through_Registry_Editor\"><strong><span data-preserver-spaces=\"true\">1. Za pomoc\u0105 Edytora rejestru<\/span><\/strong><\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Pierwszym sposobem zmiany portu RDP jest u\u017cycie Edytora rejestru. Mo\u017cesz to zrobi\u0107, wykonuj\u0105c czynno\u015bci podane poni\u017cej-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Otw\u00f3rz <\/span><strong><span data-preserver-spaces=\"true\">menu Start<\/span><\/strong><span data-preserver-spaces=\"true\">, wyszukaj <\/span><strong><span data-preserver-spaces=\"true\">Edytor rejestru<\/span><\/strong><span data-preserver-spaces=\"true\"> i otw\u00f3rz go. <\/span><img alt=\"Edytor rejestru z paska wyszukiwania\" class=\"wp-image\" decoding=\"async\" height=\"286\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/Registry-Editor-from-search-bar.webp\" title=\"Edytor rejestru z paska wyszukiwania\" width=\"600\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Teraz przejd\u017a do nast\u0119puj\u0105cego adresu-<\/span>\n<ul>\n<li>\n<code><strong><span data-preserver-spaces=\"true\">HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp<\/span><\/strong><\/code>\n<\/li>\n<\/ul>\n<\/li>\n<li><span data-preserver-spaces=\"true\">Po prawej stronie kliknij dwukrotnie <\/span><strong><span data-preserver-spaces=\"true\">Numer portu<\/span><\/strong><span data-preserver-spaces=\"true\">, aby go edytowa\u0107. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Tutaj wybierz <\/span><strong><span data-preserver-spaces=\"true\">Dziesi\u0119tny<\/span><\/strong><span data-preserver-spaces=\"true\"> w obszarze <\/span><strong><span data-preserver-spaces=\"true\">Podstawowy<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Teraz b\u0119dziesz musia\u0142 edytowa\u0107 <\/span><strong><span data-preserver-spaces=\"true\">Dane warto\u015bci<\/span><\/strong><span data-preserver-spaces=\"true\">. Ustaw <\/span><strong><span data-preserver-spaces=\"true\">Dane warto\u015bci<\/span><\/strong><span data-preserver-spaces=\"true\"> na port RDP, na kt\u00f3ry chcesz si\u0119 zmieni\u0107. <\/span><img alt=\"Poprzez Edytor rejestru\" class=\"wp-image\" decoding=\"async\" height=\"405\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/Through-Registry-Editor.webp\" title=\"Poprzez Edytor rejestru\" width=\"623\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Po zako\u0144czeniu kliknij <\/span><strong><span data-preserver-spaces=\"true\">OK<\/span><\/strong><span data-preserver-spaces=\"true\">, aby zapisa\u0107 zmiany. <\/span><\/li>\n<\/ol>\n<h3><span id=\"2_Through_PowerShell\"><strong><span data-preserver-spaces=\"true\">2. Przez PowerShell<\/span><\/strong><\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Mo\u017cesz tak\u017ce uruchomi\u0107 polecenie PowerShell, aby zmieni\u0107 port RDP dla serwera Windows. Aby to zrobi\u0107, wykonaj kroki podane poni\u017cej-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Naci\u015bnij klawisz <\/span><strong><span data-preserver-spaces=\"true\">Windows <\/span><\/strong><span data-preserver-spaces=\"true\">i wpisz <\/span><strong><span data-preserver-spaces=\"true\">Windows PowerShell<\/span><\/strong><span data-preserver-spaces=\"true\">. Kliknij prawym przyciskiem myszy <\/span><strong><span data-preserver-spaces=\"true\">Windows PowerShell<\/span><\/strong><span data-preserver-spaces=\"true\">, a nast\u0119pnie kliknij <\/span><strong><span data-preserver-spaces=\"true\">Uruchom jako administrator<\/span><\/strong><span data-preserver-spaces=\"true\"> . <\/span><img alt=\"wpisz Windows PowerShell\" class=\"wp-image\" decoding=\"async\" height=\"410\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/type-Windows-PowerShell.webp\" title=\"wpisz Windows PowerShell\" width=\"640\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Gdy pojawi si\u0119 monit UAC, kliknij przycisk <\/span><strong><span data-preserver-spaces=\"true\">Tak <\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">W Windows PowerShell wykonaj nast\u0119puj\u0105ce polecenie:<\/span>\n<ul>\n<li>\n<code><strong><span data-preserver-spaces=\"true\">Set-ItemProperty -Path \u2018HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp' -Name \u2018portnumber' -Value [Port Number]<\/span><\/strong><\/code>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2><span id=\"Implement_the_Changes_in_the_RDP_Port\"><strong><span data-preserver-spaces=\"true\">Zaimplementuj zmiany w porcie RDP<\/span><\/strong><\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Zmiany nale\u017cy wdro\u017cy\u0107 po zmianie portu RDP, wykonuj\u0105c powy\u017csze kroki. Skonfiguruj zapor\u0119 systemu Windows dla najnowszego portu i uruchom ponownie us\u0142ugi pulpitu zdalnego. Oto jak-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Naci\u015bnij klawisz<\/span><strong><span data-preserver-spaces=\"true\"> Windows<\/span><\/strong><span data-preserver-spaces=\"true\">, wpisz <strong>Zapora Windows Defender z zaawansowanymi zabezpieczeniami<\/strong><\/span><span data-preserver-spaces=\"true\"> i naci\u015bnij <\/span><strong><span data-preserver-spaces=\"true\">Enter<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><img alt=\"Zapora systemu Windows Defender z zaawansowanymi zabezpieczeniami\" class=\"wp-image\" decoding=\"async\" height=\"535\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/Windows-Defender-Firewall-with-Advanced-Security.webp\" title=\"Zapora systemu Windows Defender z zaawansowanymi zabezpieczeniami\" width=\"758\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Kliknij <\/span><strong><span data-preserver-spaces=\"true\">Regu\u0142y ruchu przychodz\u0105cego<\/span><\/strong><span data-preserver-spaces=\"true\">, a nast\u0119pnie kliknij <\/span><strong><span data-preserver-spaces=\"true\">Nowy<\/span><\/strong><strong><span data-preserver-spaces=\"true\">Zasada<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><img alt=\"Regu\u0142y przychodz\u0105ce, a nast\u0119pnie kliknij Nowa regu\u0142a\" class=\"wp-image\" decoding=\"async\" height=\"415\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/Inbound-Rules-and-then-click-on-New-Rule.webp\" title=\"Regu\u0142y przychodz\u0105ce, a nast\u0119pnie kliknij Nowa regu\u0142a\" width=\"830\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">W obszarze <\/span><strong><span data-preserver-spaces=\"true\">Typ regu\u0142y<\/span><\/strong><span data-preserver-spaces=\"true\"> wybierz <\/span><strong><span data-preserver-spaces=\"true\">Port<\/span><\/strong><span data-preserver-spaces=\"true\">, a nast\u0119pnie kliknij <\/span><strong><span data-preserver-spaces=\"true\">Dalej<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><img alt=\"Typ regu\u0142y, wybierz\u00a0Port, a nast\u0119pnie kliknij Dalej\" class=\"wp-image\" decoding=\"async\" height=\"567\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/Rule-Type-select-Port-and-then-click-on-Next.webp\" title=\"Typ regu\u0142y, wybierz\u00a0Port, a nast\u0119pnie kliknij Dalej\" width=\"702\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Na pytanie \u201eCzy ta regu\u0142a dotyczy protoko\u0142u TCP czy UDP?\u201d wybierz <\/span><strong><span data-preserver-spaces=\"true\">TCP<\/span><\/strong><span data-preserver-spaces=\"true\">.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Wybierz <\/span><strong><span data-preserver-spaces=\"true\">Okre\u015blone porty lokalne<\/span><\/strong><span data-preserver-spaces=\"true\">, wpisz nowy ustawiony port RDP, a nast\u0119pnie kliknij <\/span><strong><span data-preserver-spaces=\"true\"> Dalej<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><img alt=\"Okre\u015blone porty lokalne\" class=\"wp-image\" decoding=\"async\" height=\"565\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/Specific-local-ports.webp\" title=\"Okre\u015blone porty lokalne\" width=\"701\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Na nast\u0119pnym ekranie wybierz <\/span><strong><span data-preserver-spaces=\"true\">Zezwalaj na po\u0142\u0105czenie<\/span><\/strong><span data-preserver-spaces=\"true\">, a nast\u0119pnie kontynuuj, klikaj\u0105c <\/span><strong><span data-preserver-spaces=\"true\">Dalej<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><img alt=\"Zezw\u00f3l na po\u0142\u0105czenie\" class=\"wp-image\" decoding=\"async\" height=\"566\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/Allow-the-connection.webp\" title=\"Zezw\u00f3l na po\u0142\u0105czenie\" width=\"700\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Prosz\u0119 wybra\u0107, czy regu\u0142a dotyczy <\/span><strong><span data-preserver-spaces=\"true\">domeny<\/span><\/strong><span data-preserver-spaces=\"true\">, <\/span><strong><span data-preserver-spaces=\"true\">prywatnej<\/span><\/strong><span data-preserver-spaces=\"true\">, <\/span><strong><span data-preserver-spaces=\"true\">Publiczne<\/span><\/strong><span data-preserver-spaces=\"true\"> lub wszystkie. <\/span><img alt=\"Domena,\u00a0prywatna,\u00a0publiczna\" class=\"wp-image\" decoding=\"async\" height=\"568\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/Domain-Private-Public.webp\" title=\"Domena,\u00a0prywatna,\u00a0publiczna\" width=\"705\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Musisz teraz wprowadzi\u0107 <\/span><strong><span data-preserver-spaces=\"true\">Nazw\u0119<\/span><\/strong><span data-preserver-spaces=\"true\"> portu RDP i opis (opcjonalnie). Po zako\u0144czeniu kliknij <\/span><strong><span data-preserver-spaces=\"true\">Zako\u0144cz<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Wybrali\u015bmy <\/span><strong><span data-preserver-spaces=\"true\">TCP<\/span><\/strong><span data-preserver-spaces=\"true\"> w czwartym kroku powy\u017cej; po ustawieniu regu\u0142y dla protoko\u0142u TCP wykonaj ponownie powy\u017csze kroki, ale wybierz <\/span><strong><span data-preserver-spaces=\"true\">UDP<\/span><\/strong><span data-preserver-spaces=\"true\"> zamiast TCP.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Naci\u015bnij kombinacj\u0119 klawiszy <\/span><strong><span data-preserver-spaces=\"true\">Windows + R <\/span><\/strong><span data-preserver-spaces=\"true\">, wpisz <\/span><strong><span data-preserver-spaces=\"true\">services.msc<\/span><\/strong><span data-preserver-spaces=\"true\"> i kliknij <\/span><strong><span data-preserver-spaces=\"true\">OK<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><img alt=\"wyszukaj us\u0142ugi\" class=\"wp-image\" decoding=\"async\" height=\"474\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/search-for-services.webp\" title=\"wyszukaj us\u0142ugi\" width=\"640\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Wyszukaj <\/span><strong><span data-preserver-spaces=\"true\">Us\u0142ugi pulpitu zdalnego<\/span><\/strong><span data-preserver-spaces=\"true\"> tutaj. Kliknij t\u0119 us\u0142ug\u0119 prawym przyciskiem myszy, a nast\u0119pnie kliknij <\/span><strong><span data-preserver-spaces=\"true\">Uruchom ponownie<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><\/li>\n<\/ol>\n<h2><span id=\"How_to_Check_the_RDP_Port_on_Windows_Server\"><strong><span data-preserver-spaces=\"true\">Jak sprawdzi\u0107 port RDP na serwerze Windows?<\/span><\/strong><\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Po zmianie portu RDP wa\u017cne jest, aby sprawdzi\u0107, czy zmiany zosta\u0142y wprowadzone. Mo\u017cesz to zrobi\u0107, wykonuj\u0105c kroki podane poni\u017cej-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Uruchom <\/span><strong><span data-preserver-spaces=\"true\">Windows PowerShell<\/span><\/strong><span data-preserver-spaces=\"true\"> jako administrator na swoim komputerze. <\/span><img alt=\"wpisz Windows PowerShell\" class=\"wp-image\" decoding=\"async\" height=\"410\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2023\/12\/type-Windows-PowerShell-1.webp\" title=\"wpisz Windows PowerShell\" width=\"640\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">W PowerShell musisz wykona\u0107 polecenie podane poni\u017cej:<\/span><\/li>\n<\/ol>\n<ul>\n<li>\n<ul>\n<li>\n<code><strong><span data-preserver-spaces=\"true\">Get-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp' -name \"PortNumber\"<\/span><\/strong><\/code>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4><span id=\"Final_Words\"><strong><span data-preserver-spaces=\"true\">Ostatnie s\u0142owa<\/span><\/strong><\/span><\/h4>\n<p><span data-preserver-spaces=\"true\">Po wykonaniu powy\u017cszych krok\u00f3w port RDP na serwerze Windows zostanie zmieniony na port niestandardowy zamiast domy\u015blnego. Upewnij si\u0119, \u017ce dok\u0142adnie wykona\u0142e\u015b wszystkie kroki i nie pomi\u0144 ich. Mo\u017cesz teraz u\u017cywa\u0107 nowego portu do korzystania z funkcji Pod\u0142\u0105czanie pulpitu zdalnego.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Poniewa\u017c coraz wi\u0119cej os\u00f3b korzysta ze zdalnych serwer\u00f3w, hakerom \u0142atwiej jest w\u0142ama\u0107 si\u0119 do systemu poprzez port RDP. Domy\u015blny numer portu to 3389 i wi\u0119kszo\u015b\u0107 ludzi utrzymuje go bez zmian, nie czuj\u0105c potrzeby jego zmiany. Teraz ten domy\u015blny port RDP jest ju\u017c na radarze haker\u00f3w i zawsze pr\u00f3buj\u0105 uzyska\u0107 za jego po\u015brednictwem dost\u0119p do zdalnych [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/posts\/164\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/pl\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}