Showing posts with label Networking. Show all posts
Showing posts with label Networking. Show all posts

How to Setup a Virtual Private Network in Few Minutes

Virtual Private Networks, or VPN for short, allow employees to securely connect their desktop or laptop computers to the office network from any location in the world using a regular Internet connection.

If you are working from home, you can connect to the corporate network over VPN and you’ll have immediate access to your emails, internal web pages, network drives, and stuff that is otherwise only available from computers within the office premises. Some VPN clients also allow screen sharing and remote access to facilitate communication among team members.

Create a Virtual Private Network for Free

If you regular need to connect to your home computer(s) from the office or if you have a group of friends and family members with whom you share files quite frequently, you can consider setting up a virtual private network between all these computers.

While businesses generally invest in VPN solutions for companies like Cisco, we can create own VPN for free using Gbridge – this is a software only solution that is available for all versions of Windows and the best part is that it uses your Google Account for authentication.

Once you install this application*, sign in with your Gmail or Google Apps account. Then enter a hostname for your computer; this is what your computer will show up as to other computers that will connect to the VPN. Your hostname must be 8 characters long or less and include only letters, numbers, and/or dashes.


 If you are using a DNS service like OpenDNS that does automatic typo correction, you may see a notification saying that it is interfering with Gbridge. You can either add an exception for Gbridge, or simply let Gbridge automatically raise its virtual adapter’s binding order to override this.

Share Files and Folders

You’ll now see a list of all your Google Talk friends listed in the Gbridge window, as well as a list of folders that you are current sharing. You can share files as well as chat with your friends directly in Gbridge. They do not have to install Gbridge to chat with you, but will need the software to access your shared files from their computer.

Gbridge has a sample folder shared by default, but can easily add others from the SecureShare tab. Simply select a folder and choose friends with whom you wish to share that folder with. They’ll now will be able to browse the contents of that shared folder as well download files using a web browser.

Remotely Access another Computer

In addition to file sharing, Gbridge also let you to remotely access your other computers (or that of your friends) over VPN. You can do this via the built-in VNC client (called DesktopShare) or through Windows Remote Desktop. The latter option is only available if you are on XP Pro, Vista Business or Windows 7 Professional.

Simply select the DesktopShare option on the computer that you wish to control, click “Configure Gbridge DesktopShare,” select who should access that computer and add a password. These people can now remotely access and control the computer.

Alternatively, create a common Google account and use it on both the computers – you can then remotely control the other computer without DesktopShare.

With GBridge, you can sync selected folders that you always have the same file on all your computer. This option may also be used to backup files on a remote computer.

Limitations of your VPN Setup

Gbridge requires Windows 2000, XP, Vista, and Windows 7 but there’s no support for Mac or Linux machines. The application uses unsigned drivers, and while this will only prompt a security dialog in 32 bit versions of Windows, it won’t install in 64 bit editions since these require signed drivers.

Gbridge is otherwise a brilliant solution. You can stream MP3 files, show photos and video without uploading them anywhere, remotely fix a problem on your friend’s computer, access your home files from office or even unblock restricted sites. All this using your Google account.



How to Setup your Own VPN or Virtual Private Network

Alternatives may include Opera Unite, Purple Nova and Team Viewer.


Best ways to Increase the Range of your Wireless Network

Setting up a wireless home network is pretty simple now. Get a wireless router, connect the Internet port of the router to your broadband modem and then connect any of the numbered LAN ports to the desktop computer through an Ethernet cable.

Wireless G (or 802.11g) routers offer fairly good Wi-Fi signal strength but if you plan to transfer large files or stream videos around the house, you may well consider switching to a slightly more expensive Wireless N (or 802.11n) router – these offer better signal strength and higher data transfer speeds than Wireless G routers.
There’s however one problem with Wi-Fi signals emanating from your wireless router – they only have a limited range. The wireless signal strength will degrade as the distance between the router and your laptop increases and it will further weaken if you have too many brick walls in the house or if your computer is located on a different floor than the router.

Ways to Boost the WiFi Signal Strength

If you too have a problem getting Wi-Fi signals in every corner of your house, here are some tips (and accessories) to help you extend the range of your wireless network.

1. Install the DD-WRT* firmware on your wireless router – this might help increase the range of your Wi-Fi router by a few meters if not more.

To increase the signal strength, you can increase the router’s transmit power and also disable both frame burst and afterburner (the settings can be accessed from the router’s web dashboard). If DD-WRT firmware is not available for your router, try the Tomato firmware on your router.

wifi alumnium reflector2. Most routers have omni-directional antennas so they emit wireless signals in all directions (just like a light bulb).

That’s fine if you have placed the router in a central location but if the router is in some corner of your room or against a wall, consider adding a home-made reflector behind the antennas of your router.

3. InSSIDer is a free utility that can help you detect the presence and strength of wireless networks. Install InSSIDer on your laptop, walk around the house with your laptop to determine the wireless signal strength at various places and, based on this information, you can quickly find a more suitable location for the router.

WiFi Booster Antenna 4. Ideally, you should place the router at a height in  some central location and away from other cordless devices. Make sure that the router is not placed near something metallic (like an almirah or window grills) as that will weaken the wireless signals. Avoid mirrors as they can reflect the wireless signals away from the desired direction.

5. Wireless routers generally ship with omni-directional antennas but you can replace them with more powerful uni-directional antennas and that will keep the signal from getting broadcast in all directions.

If you can’t find a compatible directional antenna for your router model, consider a booster antenna that’s omni-directional but will still boost both the range and strength of wireless signals.

Extend the range of WiFi signals with Hardware

If your router is placed on the ground floor of your home, the Wi-Fi signals will be very weak or may not even reach the basement computer or the printer upstairs. The situation will be no different if you work in a fairly large premises or if there are too many walls in the area.
In that case, here are some hardware device that you can consider to extend the reach of your Wi-Fi network:

WiFi Repeater (Range Extender)Option 1. You can attach a WiFi Repeater (also known as Wireless Range Expander) to your router and quickly expand the coverage of your wireless network without using any cables.

The Repeater should be placed within the range of your existing router and it will reflect the signals to other areas where the wireless reception was earlier poor (or totally absent). The Repeater can connect wirelessly to both routers and access points (see #3 below).

Option 2. (This is my current setup) You can get another wireless router and connect   it to your existing router using an Ethernet cable. The advantage is that this setup comes pretty cheap and the Internet speed stays almost the same even for computers that are accessing the web via the new router.

You can get a 100 feet long Ethernet Cable (also known as Cat5 or LAN or RJ45  cable) for less than $10 and wireless routers start at $20.   Here’s a detailed guide on how you can connect two routers together.
Wireless Access Point Option #3. You also have the option to use an Access Point instead of a router to extend the WiFi range but that’s often not required because Wireless Access Points can be more expensive than equivalent routers.

The other advantage with a router is that is has extra LAN ports so, in future, you can connect more wired computers for sharing files or you Internet connection.

Option 4. If you have an old desktop or laptop computer, you should consider adding  an external (USB based) wireless adapter or upgrade the internal network card to improve the wireless reception (and thus Internet speed).

More tips on Home Networking:
Update: Eugene Dimarsky says that option 2 can be amended with a more expensive, but prettier option. Instead of running a cat5 cable, consider a homeplug bridge – also known as powerline network adapters – allowing you to use the power lines in the house to connect the two routers. I’ve done this about a dozen times in different places and it works very reliably with no cable mess. It does cost an extra $80 or so, but for many it is worth the expense to keep things neat and ‘wireless’.

Make a Wireless Home Network without a Router

Let’s say you have one internet connection at home that you want to share across all your desktop and laptop computers, your Wi-Fi enabled mobile phones, tablets, video game consoles (like the Xbox), digital photo frames and any other wireless devices that you may have at home.

How do you do this?

The easiest way to setup a wireless network, as we all know, is with the help of a router – just attach a wireless router to your modem and any Wi-Fi enabled gear, that’s located inside the signal range of your router, will be able to connect to the web using that lone Internet connection.

Setup Wireless Network without a Wireless Router

Now consider a slightly different scenario – you have all these Wi-Fi enabled devices at home but there’s no router. Well, there’s no reason to buy one because you can still easily setup a wireless network as long as your computers have a wireless network adapter*.



Most new desktops and laptop computers are already equipped with internal network adapters so you are ready to go without a router.

If your computer doesn’t have built-in wireless capabilities, you can either buy a USB network adapter that plugs into the USB port of your desktop or go for a wireless adapter that directly plugs into your notebook’s PC Card slot. Desktop users can also opt for an internal wireless PCI card but you’ll have to open the computer case in order to install this network adapter.

Create a Wi-Fi Network without a Router

Now that you have everything in place to create a Wi-Fi network, let’s actually build one.

For Windows XP and Vista users
If your main computer, that is already connected to the internet, is running Windows XP, Vista or even Mac OS X, you can set up an ad-hoc Wi-Fi network and the other wireless devices can then connect to the web via this ad-hoc network (also called a computer-to-computer network).

Wired Connection In, Wireless Connection Out
It’s an easy process. To set up an ad-hoc network in Windows Vista, go to Network and Sharing Center from the control panel, select “Set up a connection or network” and choose “Set up a wireless ad hoc (computer-to-computer) network”.

Make sure you select “Save this network” option else the ad hoc network will be removed if no other computers / devices are connecting to the network.

create wireless ad hoc network
save ad-hoc network

Turn on Internet Sharing in the next screen and now your other home computers can connect to the ad hoc network just like they would connect to any regular wireless network. Setting up an ad hoc network in XP takes a couple of extra steps but also make sure the host computer is running at least XP SP2 or SP3.

For Windows 7 users

If you are on Windows 7, you can instantly turn your  computer into a personal Wi-Fi hotspot without having to configure anything. All you need is a free software called Virtual Router and the computer connected to the internet must be running Windows 7.

[*] Virtual Router works will all editions of Windows 7 except the Starter edition because Microsoft has disabled the Virtual Wifi feature in that particular edition.
 

Using the virtual router is simple – just run the program on any Windows 7 computer, assign a password and that’s it. In the above example, I used the Virtual Router to connect an iPod, an Ubuntu Linux laptop and a Windows desktop to the Internet via a Windows 7 notebook where that virtual router software was running.
As new devices join the Wireless network, their assigned IP and MAC addresses instantly appear in the Virtual Router window. And you can click the “Stop Router” button anytime to deactivate the hotspot and disable Internet sharing.

Virtual Wi-Fi vs Ad Hoc Wireless Networking

To set up Ad Hoc networking, your main computer needs to have an Ethernet based Internet connection as well as a Wireless (WLAN) network adapter. In the case of Virtual Wi-Fi, the Ethernet card is optional so you can turn a laptop into a hotspot even if your laptop itself is connected to a Wireless network and not to an Ethernet cable.

Computers and other wireless devices in ad hoc networks must be within 30 feet of each other but there’s no such restriction in the case of Virtual Wireless networks.

Ad-Hoc wireless networking is available on Windows XP, Vista and Windows 7 while Virtual WiFi, which is much easier to setup, is available on Windows 7 or Windows Server 2008.


[*] Intel’s Centrino 2 processors include a technology called My Wifi that can also turn your wirelessly connected laptop into a personal Wi-Fi hotspot but the interesting part is that this supports Windows Vista as well in addition to Windows 7.

How to Connect Two Computers Without a Router

Let’s assume you have two computers at home and you want to connect them together so that you can easily share an internet connection between the two machines or transfer photos, music and other files from one computer to another. How do you do this?

Connect Two Computers with an Ethernet Cable

There are two options – you can either buy a router or, if you are looking for something more simple and don’t want to spend money on new networking hardware, you can connect the two computers using a commonly-available cable. The latter method doesn’t involve any complicated network settings and you will still be able to share files, internet connection, and even printers between computers.

To set up this basic wired home network, all you need is an inexpensive Ethernet crossover cable and the other requirement is that network cards* (also known as LAN or Ethernet cards) should be installed on each of you computers.

[*] This should not be an issue because network cards are available on most newer machines by default but if you are working with a very old computer, you can either attach an internal LAN card to your computer’s motherboard or go for a USB Network adapter that will turn a USB port into an Ethernet (RJ45) port.
 
Ethernet Cables for Connecting Computers

An Ethernet crossover cable looks like a standard Ethernet cable but the internal wiring is a little different. You can purchase crossover cables at Amazon.com or from your local computer store. If you have trouble finding them, you can purchase an inexpensive crossover adaptor and that will let you use any standard Ethernet cable as a crossover cable.

Connect Computers with an Ethernet Crossover Cable

Before connecting the two computers with a physical cable, make sure that both machine are using the same workgroup. Here is step-by-step guide that explains how you can change the workgroup of your computers.

Changing workgroup in Windows XP – From the Start menu, right-click “My Computer.” Select Properties in the drop-down menu, and then select the second tab that says “Computer Name” from the System Properties window. Now click the “Change” button, enter a unique Workgroup name and reboot your computer.

Changing workgroup in Windows 7 or Vista – Open the Control Panel, type “Workgroup” in the search box, and select the entry that says “Change Workgroup Name.” Click the “Change” button, enter a Workgroup name and restart the computer. Windows 7 users can skip one step; simply type “Workgroup” in the search box in the start menu, and select the first entry, then proceed as above.

Now that the workgroups are same for both computers, connect the two computers together using the Ethernet crossover cable. Simply plug-in one end of the crossover cable into the network adapter of Computer A and connect the other end of the cable to the network adapter of Computer B.

Windows will automatically recognize the new network, and you can now easily view files and folder that the other computer has shared. Simply open Networks from the Start Menu (or the Control Panel), and you should see the other computer by its name. You can then browse any shared files on the other computer, and can even utilize shared printers.

Troubleshooting – If you do not see the other computer under Networks, you probably have a prompt at the top of your Network window saying that Network discovery is turned off . Select “Turn on Network Discovery and File Sharing.”  In the next prompt, select “No, make the network I am connected to a private network.”  Now you should see the other computer on the home network.

[*] While it is possible to share files between two computers connected with a crossover cable without making them part of the same workgroup, the method will only work if both computers have this network set as a private network, and may still cause problems. It is therefore advisable to have both computers on the same workgroup before sharing files and printers.

Share an Internet Connection Between Two Computers

There are scenarios where you may want to share the same internet connection between two computers. For instance:

Situation A - You have setup a Wi-Fi network at home but your old desktop computer doesn’t have a wireless network card. In that case, you can use the laptop to connect to the internet wirelessly and then share that same connection with the desktop over a crossover Ethernet cable.

Situation B – You have a netbook with a built-in cellular data connection. You can share that connection with any another computer at home through the crossover Ethernet cable.

Situation C – You use a (slow) Wireless USB modem with your laptop computer while your desktop is connected to an ADSL Broadband line and there’s no router at home. For any bandwidth intensive tasks, like when you want to backup photos from your laptop to an online service, you can connect the laptop to the desktop and things will happen much faster. OK, let’s look at the steps required for sharing an Internet connection.

First, if you only wish to share internet connection and not files, both computers need not belong to the same workgroup. All you need to do is to connect the two computers with the Ethernet crossover cable, and then turn on Internet connection sharing in the computer that already has an Internet connection. The instructions vary for different versions of Windows:

For Windows XP – Select “Network and Internet Connections” from the Control Panel and click “Network Connections.”

Right-click on the network connection you wish to share (the one connected to the internet), select Properties, click on the “Advanced” tab, and then check the box that says “Allow other network users to connect through this computer’s Internet connection.”  Click OK, and the second computer that you have connected to this computer with the Crossover Cable should have internet access now.

For Windows 7 and Vista – Open Control Panel, enter “network connections” in the search box on the top right and select “View Network Connections.”

Right-click on the network connection you wish to share (this must be the one connected to the internet) and select Properties. Select the “Sharing” tab and then check the option that says “Allow other network users to connect through this computer’s Internet connection.” Click OK, and the other computer you have connected to this Windows 7 or Vista computer should have internet access now.

Expand the Range of your Wireless Network with any Old Router

The wireless range offered by your router will vary depending on which Wi-Fi standard it supports – is it 802.11g or 802.11n compatible? – and its physical location (if there are any walls around, they will obstruct the Wi-Fi signal).

The 802.11n routers, also known as Wireless N routers, typically have a higher Wi-Fi range but even if you get one of these, the wireless signals may still not reach certain areas of your home – like the corner study or the bedroom on the first floor – as there are just too many obstructions in the form of walls between your laptop and the router.

Expand your Wireless Network’s Range with an Old Router

What should you therefore do to ensure that the Wi-Fi signals are available in full strength in every corner of your house?

You can easily extend your Wi-Fi network with some additional hardware – like Wi-Fi repeaters and Wireless Access Points – but if you want to save a few bucks, just get hold of an old wireless router that you no longer use and connect it to your existing router using an inexpensive Ethernet cable.

wifi diagram

Our premises is around 100 feet by 200 feet with plenty of walls (see the above illustration) and yet there’s wireless Internet access available in almost every part of the house.

The setup is extremely simple. All I have is a main Wireless-N router connected to the ISP provide modem. Then there’s a second wireless router (Wireless-G) that is connected to the main router over an Ethernet or Cat-5 cable.

Use a Second Router as an Access Point

Let’s call our routers OBAMA (the router that you are already using with your wireless home network) and PALIN (the second router that you want to add to increase your wireless range).

A: Note the Settings of the Main Router

Step 1: First we need to determine the IP address of OBAMA (our existing router). Copy-paste the following command in the Windows Run box and note the value of “Default Gateway.” That your router’s IP address.
cmd /k ipconfig
Let’s assume the router’s IP address is 192.168.30.1. Also make note of the Subnet Mask value which is usually 255.255.255.0.

Step 2: Open your web browser and type the router’s IP address, that you determined earlier, into the address bar. If you are using IE, you might want to add http:// to the address else IE may throw an error.
You’ll now have to provide a password for accessing the router settings. This will vary depending on your router’s manufacturer – just Google for “<brand name> default router password” or try the standard combinations like admin/admin, admin/password and admin/<blank> (no password).

Step 3: Once you are in the settings of OBAMA router, switch to >wireless settings and make a note of the Wireless mode, the SSID and the channel.

If you have protected your Wi-Fi with a password, also note down the security mode used (WPA, WEP or WPA2) and your secret passphrase.

B: Configure the Second Router

Step 4: Next we need to configure PALIN, our second router.
First reset the router PALIN to factory defaults by hard-pressing the reset button for about 10 seconds. Now   connect PALIN to your computer using the Ethernet cable. Put one end of the cable in any of the LAN ports available on the router and the other end to your computer’s Ethernet port. Make sure the router is powered on.

Step 5: Open the browser and type 192.168.1.1 – the default internet IP address of your PALIN router. If you are not using a Linksys router, try 192.168.0.1 which is the default for Netgear and D-Link routers.
Once you are in, you need to change the values of the default SSID, Wireless mode, the channel, the security mode and the passphrase such that they match with your OBAMA router.

Then go to Setup – > Advanced routing and change the current mode from Gateway to Router. Next disable DHCP Server since our primary OBAMA router will handle the task of assigning IP addresses to devices connecting to the wireless network.

Finally, change the IP address of the PALIN router to any free address in your LAN. For instance, if the IP address of OBAMA router is 192.168.30.1, you can safely assign 192.168.30.2 to PALIN. Also make sure that the Subnet mask is the same as determined in Step 1. Save settings.

C: Connect the Two Routers

Now that we have configured the routers, it’s time to connect them with wires.
Your existing OBAMA Router probably has five (1+4) ports – the WAN port here (or the Internet port) should be connected to the ISP provide modem as before. Pick any of the available LAN ports on the router and connect it to any of the LAN ports on the PALIN router using an Ethernet cable. That’s it.

router connection

Now that everything is setup, you can connect your computer and mobile devices to the second router using either a wired connection (the three ports are still free) or over Wi-Fi.

Since we have assigned the same SSID and security settings to the second router, you don’t have to configure anything on your laptop as you move around the house*. Also, as we are just expanding the reach of an existing wireless network and not creating a new one, all your shared folders, music libraries, photos, and other files will be accessible from all computers and mobile devices that are connected to the home network.

[*] You may also split your existing wireless network by connecting a router. This method will create an additional wireless network and the two won’t be able to see or talk to each other.

How to Continuously Monitor your Internet Connection

The internet connection has been flaky for the past few days. It works fine for 10-15 minutes, breaks for about a minute and the connection is then automatically restored. This erratic on/off cycle repeats itself throughout the day. 

It is most likely an ISP issue as the modem, the router, the DNS server, and the network connections seem perfect. Even power cycling the hardware failed to fix the problem.

While the ISP resolves the issue, I have to continuously monitor the Internet connection as certain actions  like submitting web forms  would fail if initiated while the computer is offline. Luckily, there isn’t a need to download another utility as the included ping command can itself help monitor the downtime.

Continuously Monitor your Internet Connection

Ping to Monitor your Internet Connection

Go to Start -> Run and type “ping -t 8.8.8.8″ without the quotes. The “-t” switch is important as it means that the ping command will run forever unless stopped manually by hitting Ctrl + C. (8.8.8.8 is Google’s DNS Server)

The output of the ping command, as illustrated in the above screenshot, shows the live status of your Internet connection. If the status reads as “reply from 8.8.8.8,” the machine is online and in all other cases, the Internet connection is down.
Blogger Tips and Tricks