Computer >> 컴퓨터 >  >> 네트워킹 >> 네트워킹

라우터에서 포트를 전달하는 방법

일부 비디오 게임 및 프로그램이 제대로 작동하려면 라우터에서 특정 포트가 열려 있어야 합니다. 라우터에는 기본적으로 일부 포트가 열려 있지만 대부분은 닫혀 있으며 수동으로 이 포트를 열 때만 사용할 수 있습니다. 온라인 비디오 게임, 파일 서버 또는 기타 네트워킹 프로그램이 작동하지 않으면 라우터에 액세스하여 애플리케이션에 필요한 특정 포트를 엽니다.

라우터에서 포트를 전달하는 방법

포트 포워딩은 어떻게 설정합니까?

라우터를 통과하는 트래픽은 포트를 통해 전달됩니다. 모든 포트는 특정 종류의 트래픽을 위해 만들어진 특수 파이프와 같습니다. 라우터에서 포트를 열면 특정 데이터 유형이 라우터를 통해 이동할 수 있습니다.

포트를 열고 이러한 요청을 전달할 네트워크의 장치를 선택하는 작업을 포트 전달이라고 합니다. 포트 포워딩은 라우터에서 포트를 사용해야 하는 장치로 파이프를 연결하는 것과 같습니다. 둘 사이에는 데이터 흐름을 허용하는 직접적인 가시선이 있습니다.

예를 들어 FTP 서버는 포트 21에서 들어오는 연결을 수신 대기합니다. 네트워크 외부의 누구도 연결할 수 없도록 FTP 서버를 설정한 경우 라우터에서 포트 21을 열고 서버로 사용하는 컴퓨터에 전달하십시오. 이렇게 하면 새로운 전용 파이프가 파일을 서버에서 라우터를 통해 네트워크 외부로 이동하여 통신하는 FTP 클라이언트로 이동합니다.

라우터에서 포트를 전달하는 방법

다른 플레이어와 통신하기 위해 인터넷이 필요한 비디오 게임, 파일 업로드를 위해 특정 포트를 열어야 하는 토렌트 클라이언트, 특정 포트를 통해서만 메시지를 주고받는 인스턴트 메시징 애플리케이션과 같은 다른 시나리오에서도 마찬가지입니다.

모든 네트워킹 응용 프로그램은 실행할 포트가 필요하므로 다른 모든 항목이 올바르게 설정되었을 때 프로그램이나 응용 프로그램이 작동하지 않으면 라우터의 포트를 열고 요청을 올바른 장치(예:컴퓨터, 프린터, 또는 게임 콘솔).

2022년 최고의 게임 라우터 9개

포트 범위 포워딩은 포트 포워딩과 유사하지만 전체 포트 범위를 포워딩하는 데 사용됩니다. 예를 들어 특정 비디오 게임은 포트 3478에서 3480을 사용할 수 있으므로 라우터에 3개 모두를 별도의 포트 전달로 입력하는 대신 해당 게임을 실행하는 컴퓨터로 전체 범위를 전달하십시오.

다음은 라우터에서 포트를 전달하기 위해 완료해야 하는 두 가지 기본 단계입니다. 모든 장치가 다르고 다양한 라우터 변형이 있기 때문에 이러한 단계는 특정 장치에 국한되지 않습니다. 추가 도움이 필요하면 장치의 사용 설명서(예:라우터 사용 설명서)를 참조하세요.

장치에 고정 IP 주소 제공

포트 포워드의 이점을 얻을 장치는 고정 IP 주소를 가져야 합니다. 이렇게 하면 새 IP 주소를 얻을 때마다 포트 전달 설정을 변경할 필요가 없습니다.

예를 들어 컴퓨터에서 토렌트 소프트웨어를 실행하는 경우 해당 컴퓨터에 고정 IP 주소를 할당합니다. 게임 콘솔이 특정 범위의 포트를 사용하는 경우 고정 IP 주소가 필요합니다.

이를 수행하는 방법에는 라우터와 컴퓨터의 두 가지가 있습니다. 컴퓨터에 고정 IP 주소를 설정하면 더 쉽게 설정할 수 있습니다.

컴퓨터를 사용하여 고정 IP 주소 설정

고정 IP 주소를 사용하도록 Windows 컴퓨터를 설정하려면 먼저 현재 사용 중인 IP 주소를 식별하십시오.

  1. 컴퓨터에서 명령 프롬프트를 엽니다.

    라우터에서 포트를 전달하는 방법
  2. 이 명령을 입력한 다음 Enter 키를 누릅니다. :

    ipconfig /all
    
    라우터에서 포트를 전달하는 방법
  3. Record the following: IPv4 Address, Subnet Mask, Default Gateway, and DNS Servers.

    라우터에서 포트를 전달하는 방법

If you see more than one IPv4 Address entry, look for the one under a heading like Ethernet adapter Local Area Connection, Ethernet adapter Ethernet, or Ethernet LAN adapter Wi-Fi. Ignore anything else, like Bluetooth, VMware, VirtualBox, and other non-default entries.

Now, you can use that information to set up the static IP address.

  1. Open the Run dialog box (press WIN+R), enter ncpa.cpl, and select OK to open Network Connections.

    라우터에서 포트를 전달하는 방법
  2. Right-click or tap-and-hold the connection that has the same name as the one you identified in Command Prompt. For example, Ethernet0.

  3. Select Properties from the menu.

    라우터에서 포트를 전달하는 방법
  4. Choose Internet Protocol Version 4 (TCP/IPv4) from the list, then select Properties.

    라우터에서 포트를 전달하는 방법
  5. Select Use the following IP address.

    라우터에서 포트를 전달하는 방법
  6. Enter the details you copied from Command Prompt: IP address, subnet mask, default gateway, and DNS servers.

    라우터에서 포트를 전달하는 방법
  7. Choose OK when you're done.

    라우터에서 포트를 전달하는 방법

If you have several devices on your network that get IP addresses from DHCP, don't reserve the same IP address you found in Command Prompt. For example, if DHCP is set up to serve addresses from a pool between 192.168.1.2 and 192.168.1.20, configure the IP address to use a static IP address that falls outside that range to avoid address conflicts. For example, use 192.168.1.21 or above. If you're not sure what this means, add 10 or 20 to the last digit in your IP address and use that as the static IP in Windows.

You can also set up a Mac to use a static IP address, as well as Ubuntu and other Linux distributions.

Use Your Router to Set Up a Static IP Address

Another option is to use the router to set up a static IP address. Do this when a non-computer device needs an unchanging address (like a gaming console or a printer).

  1. Access the router as admin.

    라우터에서 포트를 전달하는 방법
  2. Locate a Client List, DHCP Pool, DHCP Reservation, or similar section of the settings. The section lists the devices currently connected to the router. The IP address of the device is listed along with its name.

    라우터에서 포트를 전달하는 방법
  3. Look for a way to reserve one of those IP addresses to tie it with that device so that the router always uses it when the device requests an IP address. You might need to select the IP address from a list or choose Add or Reserve.

The above steps are generic since static IP address assignment is different for each router, printer, and gaming device. Instructions differ if you need to reserve IP addresses for NETGEAR routers, edit DHCP settings on Google devices, or configure DHCP reservation on Linksys routers.

To make your public IP address static so that you can access your devices from an outside network, pay for a static IP. A workaround involving setting up a dynamic DNS service is just as helpful.

Set Up Port Forwarding

Now that you know the device's IP address and configured it to stop changing, access the router and set up the port forwarding settings.

  1. Log in to the router as admin. You need to know the router's IP address, username, and password.

    라우터에서 포트를 전달하는 방법
  2. Locate the port forwarding options. These are different for every router but might be called something like Port Forwarding, Port Triggering, Applications & Gaming, or Port Range Forwarding. These might be buried within other categories of settings like Network, Wireless, or Advanced.

    라우터에서 포트를 전달하는 방법
  3. Type the port number or port range that you want to forward. If you're forwarding one port, type the same number under both the Internal and External boxes. For port ranges, use the Start and End boxes.

    Most games and programs indicate which ports must be open on the router. If you don't know what numbers to type here, PortForward.com has a list of common ports.

    라우터에서 포트를 전달하는 방법
  4. Choose a protocol, either TCP or UDP ports. Choose both, if needed. This information should be available from the program or game that explains the port number.

    라우터에서 포트를 전달하는 방법
  5. Type the static IP address you chose.

    If asked, name the port trigger anything that makes sense to you. If it's for an FTP program, call it FTP. Call it Medal of Honor if you need the port open for that game.

    라우터에서 포트를 전달하는 방법
  6. Enable the port forwarding rule with an Enable or On option. 

Here's an example of what it looks like to forward ports on a Linksys WRT610N:

라우터에서 포트를 전달하는 방법

Some routers have a port forward setup wizard that makes it easier to configure. For example, the router might first give you a list of devices already using a static IP address and then let you choose the protocol and port number from there.

More port forwarding instructions:

  • D-Link port forwarding
  • Belkin port forwarding
  • Google Nest Wi-Fi or Google Wi-Fi port forwarding

More on Open Ports

If forwarding a port on your router doesn't allow the program or game to work on your computer, find out if a firewall program blocked the port. The same port needs to be open on the router and your computer for the application to use it.

라우터에서 포트를 전달하는 방법

To see if the Windows Firewall is blocking a port that you opened on the router, temporarily disable the firewall and then test the port again. If the port is closed on the firewall, edit some firewall settings to open it.

When you open a port on the router, traffic can flow in and out of it. When you scan the network for open ports, you should see everything that's open from the outside. There are websites and tools build specifically for this.

Here are some reasons why you would check for open ports:

  • To avoid getting into the router to check.
  • To make sure the port opened correctly when a program or game isn't working.
  • To make sure a port you closed is actually closed.
라우터에서 포트를 전달하는 방법

Several places offer a free open port checker. PortChecker.co and NetworkAppers have online port checkers that scan a network from the outside. Another option is to download Advanced Port Scanner or FreePortScanner to scan devices within your private network.

Only one port forward can exist for every instance of that port. For example, if you forward port 3389 (used by the Remote Desktop remote access program) to a computer with the IP address 192.168.1.115, that same router can't also forward port 3389 to 192.168.1.120.

In cases like this, the only solution, if possible, is to change the port the program uses. This may be possible from the software settings or through a registry hack. In the RDP example, if you edit the Windows Registry on the 192.168.1.120 computer to force Remote Desktop to use a different port like 3390, you could set up a new port forward for that port and use Remote Desktop on two computers within the same network.