I have a static IP on the network. There is a router at home. How can I get an IP to a specific PC so that I can access it from outside of IP?

    5 answers 5

    On the router - the Port forward section, and then - intuitively, because I do not know which router.

      There is no one specific answer to this question. As for each operating system that works as a router or out-of-box router (including the manufacturer and model plays a role), there are different options for settings. Therefore, I advise you to expand your question by complementing it with a hardware model, or an operating system, or something like that.

      In the general case for an out-of-box router, find Port-Forwading in the admin Port-Forwading , specify the ones you want to open as the external port / range of ports, specify those that your server works on as the internal ports, and also specify the IP address the address assigned to the server computer.

      For Linux with iptables you need rules (for example, to redirect port 8080 to port 80 of tcp protocol):

       iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-destination wxyz:80 

      And so on.

        Most likely the person has Win7, but here's another question, what kind of access does he want to get? RDP? FTP? HTTP? or just torrents?

        If you answer all at once, then in the settings of the router bind the MAC address of the house. a computer to the IP which was issued to him, then following the answer of e_klimin, forward the ports to the IP of the computer, respectively, to each service.

          You can approach the issue quite severely and add your computer to the DMZ router, then all the packages will go to him.

            First, decide how your computer will be used to know which port to transfer, then in the router by the MAC address of the computer’s network card assign it a specific IP address, and in the port forward directory specify the port and IP address (of this computer) where the packets will be sent. that's all!