Configuring the Loopback Adapter on Microsoft Windows

One of the most missed configuration issue when installing Oracle Database on Windows systems is failure to configure the Loopback adapter prior to installing the software on DHCP clients. Many Oracle products such as Database Control, Database Listener, Weblogic Server either standalone or bundled in JDeveloper use the machine IP address and or host name during the installation and may fail to function properly when either changes.

You can prevent this issue by configuring the Loopback Adpater on your DHCP machine prior to installing Oracle products. This document will detail the setup and configuration on Windows hosts in particular this install was done on Windows 7 Ultimate.

Run the Command Prompt using Run As Administrator and enter hdwwiz.exe to start the Add Hardware Wizard.

Click the Next button to continue.

Select the “Instal the hardware that I manually select from a list (Advanced)” and click the Next button to continue.

Scroll down and select Network adapters and click the Next button.

On the Select Network Adapter screen select Microsoft for the Manufacturer and select Microsoft Loopback Adapter for the Network Adapter. Click the Next button to continue.

On the confirmation screen click the Next button to install the Microsoft Loopback Adapter.

Once the installation is complete click the Finish button to exit the Add Hardware Wizard.

Now we need to configure the adapter. In the Control Panel open the Network and Sharing Center. Click the Change adapter settings on the left hand side of the panel.

On the Network Connections screen select Local Area Connection with the type of Microsoft Loopback Adapter. Right click the adapter and select properties.

On the Properties pages select Internet Protocol Version 4 (TCP/IPv4) and click the Properties button.

On the Internet Protocol Version 4 (TCP/IPv4) Properties page enter IP information for an IP address in one of the private address space (10.x.x.x , 172.16.x.x or 192.168.x.x). Care should be taken when choosing your address that it is also not in the same address range as your work or home network settings.

Once you have entered the IP information click the OK button to continue. You will be taken back to the Properties page for the Local Area Connection, click the Close button to finalize the changes.

The last thing we need to do to complete this to add an entry to the hosts file. The hosts file in Windows can be found in C:\Windows\System32\drivers\etc\. Back in the command prompt that was opened as the administrator bring up Notepad like below.

C:\Windows\system32>notepad.exe c:\Windows\System32\drivers\etc\hosts

Add a line at the bottom that includes the IP address you added for the Loopback Adapter along with the name of the machine.

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
192.168.4.111		wrath.oracledistilled.com	wrath

Once you are done, save and exit notepad. With all of that complete you should now be able to ping by name successfully.

C:\Windows\system32>ping wrath

Pinging wrath.oracledistilled.com [192.168.4.111] with 32 bytes of data:
Reply from 192.168.4.111: bytes=32 time<1ms TTL=128
Reply from 192.168.4.111: bytes=32 time<1ms TTL=128
Reply from 192.168.4.111: bytes=32 time<1ms TTL=128
Reply from 192.168.4.111: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.4.111:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Windows\system32>

Having the Loopback Adapter installed and configured on a machine that used DHCP prior to installing Oracle products will save you a lot of headache when the IP or host name of the machine changes when you change networks.

25 thoughts on “Configuring the Loopback Adapter on Microsoft Windows”

  1. Hello Brams,

    The steps are the same if you are using your Home WiFi setup. You are not changing either your wired or wireless connections. When adding the loopback adapter you are adding another network device.

  2. Occasionly, in case when we have several network adapters, Windows 7 can decide will not use Loopback adapter as primary Network interface. This is because Windows 7 relies on metrics of particular network adapter whose value by default is autogenerated according to connection speed and other parameters. For example wireless network adapter can get highest priority than Loopback adapter, in this case just installed OBIEE server should not be started. To approve it, just type

    C:\> ipconfig /all

    command, wireless adapter will be first in the list.

  3. Thanks man, was giving up on installing 11g on Win 7. But this even works with 10g.
    Thanks again.

  4. Hello, a very useful piece of the puzzle that Oracle is giving us. However, one question, I raised this query with Oracle:

    If I change my hosts file to redirect the PC name MSC11WST0238, how will you guarantee other NON-Oracle things will work? This is pretty much interfering with my network administrator and his policies. If something stops working the first thing people do is “ping HOSTNAME” to check if the IP address is setup correctly in our domain. When they see 192.168.4.1 they will start asking questions. I think this is somehow wrong.

  5. My problem is in the final stage :

    The following hardware was not installed.

    An error accrued during the installation of the device .

    Access is denied .

    please if somebody have an idea he could help me????

  6. Hi,

    After Loop back Adapter is installed and configured as described in Windows 8, ping is not considering static IP that is configured in IPV4 but IT IS PINGING IPV6 address.

    Please help on this .

    Thanks in Advance,
    Nalini

  7. Nalini,

    did you try disabling the IPV6 from the network advanced configuration?

    In Win 8 : Control Panel, Network.. Change adapter settings, pick Loopback adapters, right click Properties
    In the window where it says “This connection uses the following items” untick the box where the IPV6 is listed. Only use IPV4

    Regards,
    Ryszard

  8. Hi Ryszard,

    Yes, I ‘d tried to uncheck ipv6 but still pinging ipv6 as [fe80::59df:730:eaf9:7a6%14] .. but still the same issue.
    Prior to the loopback installation , by default it is pinging ::1 , which is localhost ip for ipv6 instead of 127.0.0.1 (ipv4).
    Is there anything to be done on the system settings? why it is taking ipv6 by default?

    Thanks,
    Nalini

  9. Hi Nalini,

    Did your problem solved ? I am also facing the same issue it is taking ipv6.

    Thanks
    Archana

  10. i followed all the stePs mentioned above but when i Ping “wrath”, i am getting request timeout as a resPonse. Please helP me to configure adoPter in windows 7.

  11. Hello,

    one year after my first install, new PC build. Can’t get past the nslookup:

    c:\CDs\OracleClient\Oracle Forms – 11gR2>nslookup 196.168.100.5
    Server: msc11dcw01250.makro.uk.com
    Address: 10.137.1.250

    DNS request timed out.
    timeout was 2 seconds.
    *** Request to msc11dcw01250.makro.uk.com timed-out

    Windows documentation says not to set the Default Gateway.
    Oracle does not mention setting the Default Gateway. So how is it?

    Also Oracle Database installation shows the following tips to test the connection (Doc ID 456111.1):

    For Example: hosts

    10.10.10.10 hostname.domainname hostname

    iii) To check:

    > hostname
    hostname.domainname

    On Windows,
    ipconfig /all
    10.10.10.10

    >ping 10.10.10.10

    >ping hostname.domainname
    >ping hostname
    >nslookup 10.10.10.10
    >nslookup hostname.domainname
    >nslookup hostname

    The above commands should return the same output for hostname, hostname.domainname and ip_address.

    So why can’t I go past the nslookup test?

    I am sure my IP address is not registered on any of my 2 DNS servers.

    Richard

  12. great boss,
    Thank for sharing such wonderful message for everyone those who are suffered for the question.

Leave a Reply

Your email address will not be published. Required fields are marked *