Posts Tagged ‘Two Computers’

Connect To The Desktop Of Your Home Computer Via The Internet

March 20th, 2010



We live in the age of global communication and connectivity. Could you imagine 10 years ago if you had told someone you’d be sitting in a coffee shop, connected to a world wide network, with no wires connected to your laptop, reading the latest news or even playing a game with your friends?

They would have suggested that you are mad! Fortunately, that is not the case and we do live in a world where global communications are standard and almost everyone has their own permanent connection to the internet via broadband.

What if, via this worldwide communications network, you could not only read the latest news or do your grocery shopping online; you could actually remotely control your PC at home! Think about this for a minute, what would this allow you to do? Would it allow you to remotely use any applications you may have installed at home, such as accountancy applications, spreadsheets or documents? Allow you to check any downloads you may have progressing at home? Check on emails that only come in to your email client? The possibilities really are endless. There is a solution at hand, and in this article I will focus on using the inbuilt features of Microsoft Windows XP Professional, namely, Remote Desktop.

If you have never used remote desktop before, don’t be worried. It’s a simple feature that does what is says, presents you with your desktop via a client. If you look in Start -> Programs -> Accessories -> Communications, you will see a Remote Desktop Client application.

Using this application, you can enter a computer name or IP address to connect to. You can even map your home computers hard drives as well, so that they appear in windows explorer, and even print to the printer beside you, from your home computer, over the internet!

Try it at home if you have two computers. You need to make sure that Remote Desktop is enabled first, and this can be done by selecting System from Control Panel, selecting the remote tab, and ensuring that “Allow users to connect remotely to this computer” is enabled. If you plan to do this at home, take note of the “Full computer name”, as this is what you will need to enter into the remote desktop client to connect to this computer.

I know you are worried about security at this point, but don’t worry – we’ll address that later.

Now, if you do have two computers at home, try it and see what happens! You should be presented with the familiar login box, and once logged in – ta-da! You are now on the desktop of the other computer, using the remote desktop application on your local computer!

Now – what if this functionality could be extended; so that you can connect to your home PC from anywhere in the world provided you are connected to the internet? Fortunately, this can be done! There are seven steps that we need to do in order to achieve this.

1. Ensure that your computer will accept remote desktop requests

2. Make sure your password is strong!

3. Note down your IP addresses

4. Change the port number that remote desktop responds on (this will aid with security)

5. Ensure any local firewalls are not blocking the Remote Desktop Port.

6. Create the necessary port forwarding rules on your home router

7. Sign up to a Dynamic DNS service (ignore if you have a static IP address from your ISP)

Let me explain these steps and how to perform each one.

1. Ensure your computer will accept remote desktop requests. As above, you need to select the System icon from Control Panel, and, from the remote tab, ensure that “Allow users to connect remotely to this computer” is enabled.

2. Make sure you password is strong! If your password is not very secure, make sure you change it so that it has at least 8 characters, at least one uppercase character and at least one symbol. One way to do this is to use symbols/numbers as a substitute for letters. For example, say I wanted my password to be the name of my son, Benjamin. Instead of using Benjamin as my password, I could use 83nj@m1n! , which as you can see, is a lot more secure than Benjamin.

3. Note down your IP addresses. We need to make a note of your internal and external IP addresses. To do this, go to Start -> Run and type cmd . Then click OK. Type ipconfig and look for the IP address entry. In this example, we will use 192.168.01. This is your internal IP address. Now browse to http://www.whatismyip.com Take a note of your IP address, in this example, we will use 1.2.3.4. This is your external IP address.

Things will get a bit techy from this point on. The tasks we need to perform are pretty straight forward, however, if you have any questions, please ask a technical friend first or consult online help from the internet as an error in the below steps could cause your computer to malfunction or cause you internet connectivity problems.

4. Change the port number that remote desktop responds on. This will require you editing the registry. Go to Start -> Run and type regedit . Then click OK and you will be presented with the Windows Registry. I won’t get into detail about the registry now, there are books as thick as encyclopaedias written on the windows registry, suffice to say, if you don’t know what you are doing, don’t mess around with it!

Now, if you browse through the tree to
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinstationsRDP-Tcp. Once there, look for an entry in the right hand pane called “PortNumber”. Double click this entry and select decimal. Now, this will be 3389 by default. Make sure you change this to a number of your choosing, above 1024 and below 65534. In this case, lets you 23456. I highly recommend making this number as obscure as possible to avoid people discovering an open port via portscan! Click OK, and close down Registry Editor.

One caveat to this, what port you decide to use, may affect the usability of this feature. Some companies will block ports that are not in common use, so 23456 will be blocked. Other companies allow all ports, as do most home users. If you choose a common port, such as port 80 or 443, it may allow you more access from secure networks, however will allow hackers to more easily see your PC on the internet.

Even using a higher port number will still render you vulnerable to certain attacks, however, the risk is severely minimised when using a higher port number. I and a number of colleagues have used this technology for a number of years without incident; however remember when allowing any connectivity over the internet, there is always a risk! This choice in functionality is up to you.

5. Ensure any local firewalls are not blocking the Remote Desktop Port. This step will most likely requiring you to check the instructions with your particular desktop firewall product. What you will need to do here is ensure that anyone is allowed to connect to the port number used above. This is usually in the form of a firewall rule and looks similar to the below:

Allow Anyone using protocol TCP 23456 in both directions to connect to My computer. Once again, this will require consulting your desktop firewall instructions.

Now, before we go any further we need to make sure this change has taken effect. Reboot your computer, and, if you have another computer on your LAN, try and remote desktop to your computer with the “:portnumber” at the end, for example. Mycomputer:23456, or your IP address, 192.168.0.1:23456. Make sure this works before continuing or else the next steps will not work.

6. Create the necessary port forwarding rules on your home router. This step will depend on your particular home router. You will need to connect to this and define a port forwarding rule similar to the following:

Allow anyone -> Using Port TCP 23456 (substitute for your port number above) to connect to 192.168.0.1 (substitute for your internal IP address). You may need to consult the manual for your router regarding port forwarding for this. You may need to define a particular protocol or server for TCP 23456 (substitute for your particular port number above). This is the hardest step of all so it may take you a while to achieve.

7. Sign up to a Dynamic DNS service (ignore if you have a static IP address from your ISP). If you know your external IP address will never change, ignore this step. If however, you have a dynamic IP from your ISP, you will need to perform this step.

This step is to ensure that if you external IP address changes, it will be registered on the internet so you can still connect to your PC. The best service I have found to use is http://www.dyndns.com.

Sign up here and enter a hostname that you would like to use, ie, myname.dyndns.com. Follow the instructions here to ensure that your external IP address is always updated on the internet.

8. Finally, you are ready to go. If you have completed all the steps above successfully, you’ll want to test this out. The best choice will be to go to a friend’s house with home broadband, and test connecting in. Once connected to the internet, load up your remote desktop client, and enter either you external IP address or DNS name, eg 1.2.3.4:23456 or myname.dyndns.com:23456.

Chances are this may not work the first time, so, I have included below tests that you can perform at each stage to determine where the problem may be.

1. Ensure that your computer will accept remote desktops requests. The best way to check this is to go to Start -> Run and type cmd . Then type “telnet 127.0.0.1 portnumber” ie, “telnet 127.0.0.1 23456”. This should return a blank cmd window if successful, and an error if unsuccessful. If this is successful, move on to the next step. If this is unsuccessful, make sure Remote Desktop Connections to you PC are enabled and the port number is correct. You can do this by typing “telnet 127.0.0.1 3389” in the same cmd window as before, and if this is successful, your remote desktop port number has not yet changed. You may need to reboot your PC or check the above registry entry.

2. Make sure your password is strong! This test I will leave to you to ensure your password is correct.

3. Note down your IP addresses. Make sure that all your IP addresses are correct!

4. Change the port number that remote desktop responds on. You can check this has been set successfully by going to Start -> Run and type cmd . Then type “telnet 127.0.0.1 portnumber” ie, “telnet 127.0.0.1 23456”. This should return a blank cmd window if successful, and an error if unsuccessful. If this is successful, move on to the next step. If this is unsuccessful, make sure Remote Desktop Connections to you PC are enabled and the port number is correct. You can do this by typing “telnet 127.0.0.1 3389” in the same cmd window as before, and if this is successful, your remote desktop port number has not yet changed. You may need to reboot your PC or check the above registry entry.

5. Ensure any local firewalls are not blocking the Remote Desktop Port. The best way to test this functionality, if you can, is to use a PC on your LAN. From a PC on the same network as yours, type “telnet ”, ie “telnet 192.168.0.1 23456”. If you receive a blank cmd window, then this is working OK. If you receive an error, and all the above tests are successful, then this indicates that something on your PC is blocking this connection. You will need to look at any local firewalls that may be preventing this access (including the inbuilt Microsoft Firewall).

If this step works, also ensure that your local firewall is not just allowing computer on your local network and nothing else to connect. I stress again, make sure you read the instructions that came with your desktop firewall.

6. Create the necessary port forwarding rules on your home router. This is the most problematic part of the process. To check this, you will need to be on another broadband connection. Once connected, navigate to Start -> Run and type cmd . Then type “telnet ” ie, “telnet 1.2.3.4 23456”. Once again, this should return a blank cmd window if successful and an error if unsuccessful. If all the tests above have been successful, and this command is unsuccessful, then this problem indicates there is an issue on the router port forwarding the Remote Desktop request. Ensure that you have read the manual and port forwarded this successfully.

7. Sign up to a Dynamic DNS service. You can test this simply by performing the same command as above. If “telnet externalip portnumber” works, and “telnet myname.dyndns.com portnumber” does not, then there is a problem with this service. From a cmd window, type ping myname.dyndns.com and see if it returns a reply. If not, then you will need to check the online help with regards to this service.

That should be it; you should now be able to connect to your home PC from almost any internet connection. Remember you can use advanced features of the remote desktop client such as connecting your local drives, printers etc.

I suggest you have a quick look at the help that comes with Remote Desktop Client to explore everything that it can provide you with.

As I mentioned at the beginning of this article, the possibilities for this use are endless depending on your own individual needs, and I imagine that as technologies such as 3G and GPRS are improved, this ability will extend to your PDA device as well so that you can access your home PC on the move, that’s if you are not carrying around a small PC and mini holographic projector in your top pocket by then!

By: David Leonard

Buying Network Cables For Your Servers

March 18th, 2010



Network cables are commonly known as RJ45 cables and are used to physically connect servers and computers to allow the sharing of data. Data can be in the form of computers talking to one another or for specific uses such as VoIP (Voice over Internet Protocol).

The network cables come in many colours, commonly blue, black, green, grey, orange, purple, white and yellow. The defacto standard for data is normally grey and many IT administrators use blue for voice data. Black is normally used for cross over cables. Cross over cables allow two computers to connect together without using a network hub. Which ever colouring sytem you use, it is important to stick to these colours so that other members of the IT team can understand at a glance the use of the specific network cable. Most IT departments will have strict codes which must be adhered to on what colour to use with the varying data types.

The network cables come in various lengths. Most commonly they 0.5m, 1m, 1.5m, 2m, 3m, 5m, 7m, 9m, 10m, 15m, 20m, 25m, 30m, 40m and 50m, the most common of these is the 0.5m network cables. The reason being is that they are used most in the connection of network switches. Have a look at the back of any large server and you will see row after row of these small network cables. Every now and again, you will see an imitation of spaghetti junction behind a server, where cables have been used that have not been in stock at the time. Whilst this will still make the system work, it is untidy and something that most IT administrators are meticulous about. Good housekeeping, properly used network cables.

Using RJ45 cables with gold plated plugs ensure a longer life for your network cable significantly reducing erosion and provides better contact.

There are various different qualities for each cable. Cat5e RJ45 cables are generally used for 10/100 networks (which are 10MBit and 100Mbit network card compatble, although they do work at 1GBit). Cat6e RJ45 cables are the standard cable for 1GBit networks and are well shielded to prevent data loss. Using a Cat5e cable on a 1GBit is not the standard network cable that should be used as it does not have the shielding.

From High street retailers to online suppliers you will see the price of a cable varies dramatically. Without question the high street stores put a large mark up on these types of cables. Mainly due to the low profit they get from their larger hardware items, hence increasing their profitability through peripherals. The cheaper cables of matching, if not better quality, can be found from the online suppliers who are solely dedicated to cable selling. Large savings can be made when buying in bulk from these online retailers.

Every IT department has a budget. Some budgets are large and some are small but it is very important for the upkeep of the computer systems that the correct quality RJ45 cables are used. And for precision it is also important to have the right length and keep to the colour standards defined by the head of the IT department.

By: Neil MacLeod

How to Set Up a Wireless Network Bridge

March 12th, 2010



To connect at least two computers with a single wireless network bridge, first and foremost, you have to install each computer with an adapter. After this, run CAT5 cables to connect all of them to a switch or a hub. Your chosen computer to use with bridging will come with two kinds of inserted adapters in its mainboard: one regular LAN adapter, which should already be inside, and one wireless network adapter, which will help make a connection to your wireless access point (WAP).

After installing and connecting these network adapters, use your intended bridging computer to open the Control Panel and then go to Network Connections. Keep in mind that to create your wireless network bridge, a minimum of two connections will be needed for various processes. Such processes would be internet sharing (ICS) and internet firewall (ICF).

Once you are inside the folder of Network Connections, you should see a ton of connections. Every connection is actually every one of the network cards: one is for the wireless card, while the other is for the wired card. Open your wireless adapter’s connection and visit the details panel. This should show that it works perfectly. Now, it would be advisable to check your Ethernet connection, too; this should work perfectly, too. Now you simply have to click on both of these connections simultaneously – which can be done by selecting every connection while holding the Ctrl key – and then right-click on any connection to select the submenu of Bridge Connections. After configuring this bridge connection, a window to Network Connection should be seen.

ICF and ICS

ICF and ICS might be needed in several cases. Regardless of the reason, you will require a third adapter first. So, if you do need ICF or ICS, you will need to go to a local store for computer hardware to get a brand new adapter card. But even if you have three adapters, this task would be quite tricky. Making a bridge in this manner would require you to bridge before actually enabling a single one of them.

You could always make use of the setup wizard when it comes to such tasks; however, the overall order would be imperative. You first need to use its setup wizard in order to make a bridge before enabling ICF or ICS. The wizard will then search for an online connection and attempt to configure this. Lastly, if you want, you can bridge several more network cards, which are connected onto the network.

By: Alex D Smith