None of my devices can obtain an ip address from the Microsoft virtual


  1. Posts : 2
    windows 8 64 bit
       #1

    None of my devices can obtain an ip address from the Microsoft virtual


    hello. i am 19 years old so i don't exactly have lots of experience with all this. I am having a problem which i could use help with. Lately i have been using the Microsoft virtual network adapter (im sure you've heard of it!)
    I wrote a small batch file for the purpose of starting the network. (ill copy and paste it in at the bottom) now this program worked perfectly for about a month but now i cant get a device to connect to the network as nothing can obtain an ip address.
    What i did to troubleshoot..
    1. I changed the ip settings from dhcp to static.
    this allowed me to connect to the network but i couldn't access the internet.
    2. I checked the properties of the network from the control panel and it
    shows that my network is sending packets but is not receiving any. I tried
    running windows troubleshooting on the network and it tells me that the
    network does not have a valid ip configuration. even though it is set
    dhcp.
    3. I tried typing the following into cmd "netsh interface ip reset"
    in return i get;
    "C:\Windows\system32>netsh interface ip reset
    Resetting Global, OK!
    Resetting Interface, OK!
    Resetting Unicast Address, OK!
    Resetting Neighbor, OK!
    Resetting Path, OK!
    Resetting Route, OK!
    Resetting , failed.
    Access is denied.

    Resetting , OK!
    Restart the computer to complete this action."

    why does it say resetting failed followed by access denied?
    i think this is the cause of "failed to obtain ip address problem but why then does it not allow internet connectivity through the static ip settings? is there something i have missed or is something corrupt maybe?

    I also tried going to device manager and uninstalling the network adapter from their then allowing windows to find it and re-install the driver.
    Thank you for having the patients to read this far. As i said at the beginning i would copy paste my program here so you can see exactly what im trying to do here.
    Thanks again.

    @echo off
    color a

    :beginning
    echo To Create a Hotspot with the name "hotspot" and
    echo a password of "12345678" just press ENTER to the first two
    echo options
    echo ............................................................................... ################################################################################
    set /p ssid=Enter name for your network: || set ssid=hotspot
    set /p key=Enter password for network(must be 8 characters or longer!): || set key=12345678
    netsh wlan set hostednetwork mode=allow ssid=%ssid% key=%key%
    netsh wlan start hosted network
    :refresh
    netsh wlan show hostednetwork
    echo Press ENTER to Refresh information!
    echo ............................................................................... ################################################################################
    echo Enter "RR" to Restart!
    echo ............................................................................... ################################################################################
    echo Enter "E" to Exit!
    echo ............................................................................... ################################################################################
    set /p option= || set option=r
    if %option%==R goto :refresh
    if %option%==r goto :refresh
    if %option%==RR goto :beginning
    if %option%==rr goto :beginning
    if %option%==E goto :end
    if %option%==e goto :end

    :end
    netsh wlan stop hostednetwork
    If you can fix this issue, awesome and please tell me how!

    thanks again.
      My Computer


  2. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #2

    I can suggest trying the connectify software rather than using the netsh commands. You should try reinstalling the driver for the wireless NIC if you are having problems setting up the hosted wireless network. :)

    Connectify - Turn your PC into a Wi-Fi Hotspot and Get Faster Internet

    You can also try setting up the hosted wireless network using the virtual router software.
    Virtual Router - Wifi Hot Spot for Windows 8, Windows 7 and 2008 R2 - Home

    Or you could try going over the netsh commands to make sure they are correct.
    Windows 7 Tip of the Week: Use Wireless Hosted Networking to Share An Internet Connection Wirelessly | FAQ/Tip content from Paul Thurrott's SuperSite for Windows
      My Computer


  3. Posts : 2
    windows 8 64 bit
    Thread Starter
       #3

    yeah i already have tried using software instead of cmd. the same thing happens as the software using these commands behind their UI. As for re-installing the NIC, i already did that by going to device manager-> uninstalled adapter-> clicked scan for new hardware-> and installed the adapter again. If i should do this i different way could you elaborate? thanks
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:19.
Find Us