Port Forward home network on to access Remote Desktop Connection from anywhere (Part 1)

This First installment of my Port Forward Tutorial series, in this tutorial you get the basic knowledge about port forwarding what is use of port forward and how it almost beneficial for you, And how to configure port forward in home router for remote desktop sharing (3389) and how to access using Static IP provided by ISP (Internet Service Provider).
Basics QA.
Q: What is Port forwarding ?
Port forwarding allows remote system from internet to connect to a specific computer or network service in Local-Area network.
Like you may take remote access of your home computer from any system over the internet, or share web | ftp server from home that can be accessible any part from world, remote surveillance CCTV Camera access
Port forwarding Anish Mandal
In the following image we can see how to take access of the home network using port forwarding.
In This part we cover how to : –
  • Identify IP Address (Public and Private) in Home Ethernet network.
  • How to access WiFi router (internet router).
  • How to Configure Port Forward for Remote desktop (Port 3389) in Router.
  • Take Remote Desktop of Home system from Internet computer using Static IP provided by ISP.
So before we start we need to know little about IP address (Internet Protocol Address) and difference between them.
Whats difference between Public IP and Private IP?

  1. Public IP Address.
    • Public IP is assign by your internet service provider.
    • The range and record is maintain by our ISP.
    • We cannot select Public IP address the range is defined by InterNIC that are guaranteed to be globally unique to the Internet.
    • We can connect our LAN environment on single Public IP address for Internet access.
  2. Private IP Address.
    • IP Address which require the systems to communicate each other in LAN network.
    • We can decide the IP Address | Range as per our requirement.
    • Its divided  in 3 class.
      • Class A 10.0.0.0/8
      • Class B 172.0.0.0/20
      • Class C 192.168.0.0/24
    • Multiple Private IP Address can access internet using an single Public IP.

When we get Internet connection from ISP we only concern about internet speed bandwidth plan for home but if we want we can ask for Static IP Address.

What is Static IP Address ?

  • Fixed IP Address Provided from ISP (Internet Service Provider).
  • Example 123.52.31.91 (Fixed static).
  • Whenever we access internet or browse web pages the static ip will be out.
  • Internet Service provided is Charge Extra for Static IP internet connection.
  • IP address can be directly accessible from internet.
Now to Our Tutorial Part.

To find out what is our Private IP Address in windows.

  • Open RUN
  • Type Command: cmd (Hit Enter)
  • In Command Prompt type Command: ipconfig (Hit Enter).
Port Forwarding Private IP
Image 1.0
  • The following (Image 1.0) we can see our Private IP Address 192.168.0.101.
For Linux and Mac users :
  • Open terminal
  • Type Command: ifconfig (Hit Enter)
To find out Public IP.
How to access WiFi Router (Home Router) ?

Now days every one use wifi router in home to connect multiple devices on home network for internet access, but most of people don’t know the basic setting of wifi router or the IP address and access credential as the ISP provider or the system admins configure that router.

But for this tutorial we require to take access of router and configure port forward in it i am using Dlink DIR-60SL router for this tutorial.

To access the router we require to know ip address of that router and to find the ip address see the (Image 1.0) where default gateway is our router IP Address.

Now in browser type Gateway IP Address in my case 192.168.0.1 Router will ask login credentials user name and password, most of time the login credentials is default provided by the vendor that can be found in user manual on the other hand we can see default username and password list on website (routerpasswords.com).

Note : Before further changes its better to take backup of current router configuration.

After login most of router will display dashboard where will see the current IPS IP Setting LAN Segment and Wi-FI SSID, for port forward settings we require to search the advance or port forwarding menu in router. in my dlink router the Port forwarding is in advance tab menu its difference on every router specify vendor just search it and the page will look like following
(Image 1.1).

configure port forward in wifi router
Image 1.1

In name field type identification name for this tutorial Its REMOTE DESKTOP in IP Address field as we require to allow remote desktop connection from the system 192.168.0.101 type that in port number type remote desktop connection default port number which is 3389 click on the check box to enable this rule for port forward and click save settings router will be reboot to apply configuration changes and the settings will look like following (Image 1.2)

Remote Desktop Connection in router port forward
Image 1.2
Most of our hard work is done now we can take the remote desktop connection of following system from anywhere over the internet simply using following steps.
From Windows System.
  • From Internet enable system.
  • Open Run.
  • Type Command: mstsc (Hit Enter)
  • In Computer box type Public IP Address and click Connect. (Image 1.3)
Remote Desktop Connection access public IP
Image 1.4
  • It will ask you to enter you PC’s login details (User name and Password)
  • Done.
From Linux you can use freerdp client to connect.
  • Command: xfreerdp /u:username /p:password /v:192.168.0.101:3389 (Hit Enter)
From Mac you need to download Microsoft RDP Client from microsoft website and same procedure need to follow which we applied in windows Remote desktop client.
Now we can also access home system from IPad, IPhone or Android device all we need to download and install rdp client more info can found on freerdp website.

The following tutorial can be watch in my youtube channel.