How to setup firewall to allow internet connection sharing via Wifi USB stick?











up vote
5
down vote

favorite












I have a Windows8 computer linked to the internet via an ethernet cable ("Ethernet" network connection). I have attached to it a DLink Wifi USB stick, and I'm trying to share the main PC's internet connection with my Android phone via a local wifi network. I am using the following batch file to set up this network:



netsh wlan set hostednetwork mode=allow ssid=MyWifiName key=password keyUsage=persistent
netsh wlan start hostednetwork


After I run this script, I can see a new network connection appear in "Control PanelNetwork and InternetNetwork Connections" named "Local Area Connection *12", and I can see "MyWifiName" on the Android phone. The device name for this connection on the PC is "Microsoft Hosted Network Virtual Adapter". I also set up the "Ethernet" connection to share Internet with "Local Area Connection *12".



However, the Android phone usually doesn't manage to obtain an IP from the wireless network, and when it does, there still seems to be no connectivity to the internet.
When I turn off the Windows Firewall completely, or even just for "Local Area Connection *12", the Android connection is perfect.



My questions are:




  1. How should I set up the Windows firewall to allow the phone to connect properly? Is there a specific rule I need to add to the Windows firewall advanced settings? [Note: the above method worked great in Windows 7, without any specific tinkering with the firewall].


  2. Is it safe to turn off the firewall specifically for the "Local Area Connection *12" (the wifi connection) if the main Ethernet connection is still protected by the firewall?



Thanks in advance.



EDIT:
Some new information:



Seems like the problem is also connected to how many devices are trying to connect. Apparently the wireless network I've set up doesn't allow (for unknown reasons) more than one concurrently connected client. I haven't noticed this before since my tablet that was somewhere in the room was connecting to the network automatically, thus leaving the phone with no connectivity.



So I guess the updated question is : why can't I connect more than one device to the network? (No problem doing that in Windows 7.)










share|improve this question
























  • Have you tried static IP address? Because I had the same problem but after setting a static IP, it works fine(my adapter is TP-Link TL WN721N).
    – RogUE
    Apr 27 '15 at 3:16















up vote
5
down vote

favorite












I have a Windows8 computer linked to the internet via an ethernet cable ("Ethernet" network connection). I have attached to it a DLink Wifi USB stick, and I'm trying to share the main PC's internet connection with my Android phone via a local wifi network. I am using the following batch file to set up this network:



netsh wlan set hostednetwork mode=allow ssid=MyWifiName key=password keyUsage=persistent
netsh wlan start hostednetwork


After I run this script, I can see a new network connection appear in "Control PanelNetwork and InternetNetwork Connections" named "Local Area Connection *12", and I can see "MyWifiName" on the Android phone. The device name for this connection on the PC is "Microsoft Hosted Network Virtual Adapter". I also set up the "Ethernet" connection to share Internet with "Local Area Connection *12".



However, the Android phone usually doesn't manage to obtain an IP from the wireless network, and when it does, there still seems to be no connectivity to the internet.
When I turn off the Windows Firewall completely, or even just for "Local Area Connection *12", the Android connection is perfect.



My questions are:




  1. How should I set up the Windows firewall to allow the phone to connect properly? Is there a specific rule I need to add to the Windows firewall advanced settings? [Note: the above method worked great in Windows 7, without any specific tinkering with the firewall].


  2. Is it safe to turn off the firewall specifically for the "Local Area Connection *12" (the wifi connection) if the main Ethernet connection is still protected by the firewall?



Thanks in advance.



EDIT:
Some new information:



Seems like the problem is also connected to how many devices are trying to connect. Apparently the wireless network I've set up doesn't allow (for unknown reasons) more than one concurrently connected client. I haven't noticed this before since my tablet that was somewhere in the room was connecting to the network automatically, thus leaving the phone with no connectivity.



So I guess the updated question is : why can't I connect more than one device to the network? (No problem doing that in Windows 7.)










share|improve this question
























  • Have you tried static IP address? Because I had the same problem but after setting a static IP, it works fine(my adapter is TP-Link TL WN721N).
    – RogUE
    Apr 27 '15 at 3:16













up vote
5
down vote

favorite









up vote
5
down vote

favorite











I have a Windows8 computer linked to the internet via an ethernet cable ("Ethernet" network connection). I have attached to it a DLink Wifi USB stick, and I'm trying to share the main PC's internet connection with my Android phone via a local wifi network. I am using the following batch file to set up this network:



netsh wlan set hostednetwork mode=allow ssid=MyWifiName key=password keyUsage=persistent
netsh wlan start hostednetwork


After I run this script, I can see a new network connection appear in "Control PanelNetwork and InternetNetwork Connections" named "Local Area Connection *12", and I can see "MyWifiName" on the Android phone. The device name for this connection on the PC is "Microsoft Hosted Network Virtual Adapter". I also set up the "Ethernet" connection to share Internet with "Local Area Connection *12".



However, the Android phone usually doesn't manage to obtain an IP from the wireless network, and when it does, there still seems to be no connectivity to the internet.
When I turn off the Windows Firewall completely, or even just for "Local Area Connection *12", the Android connection is perfect.



My questions are:




  1. How should I set up the Windows firewall to allow the phone to connect properly? Is there a specific rule I need to add to the Windows firewall advanced settings? [Note: the above method worked great in Windows 7, without any specific tinkering with the firewall].


  2. Is it safe to turn off the firewall specifically for the "Local Area Connection *12" (the wifi connection) if the main Ethernet connection is still protected by the firewall?



Thanks in advance.



EDIT:
Some new information:



Seems like the problem is also connected to how many devices are trying to connect. Apparently the wireless network I've set up doesn't allow (for unknown reasons) more than one concurrently connected client. I haven't noticed this before since my tablet that was somewhere in the room was connecting to the network automatically, thus leaving the phone with no connectivity.



So I guess the updated question is : why can't I connect more than one device to the network? (No problem doing that in Windows 7.)










share|improve this question















I have a Windows8 computer linked to the internet via an ethernet cable ("Ethernet" network connection). I have attached to it a DLink Wifi USB stick, and I'm trying to share the main PC's internet connection with my Android phone via a local wifi network. I am using the following batch file to set up this network:



netsh wlan set hostednetwork mode=allow ssid=MyWifiName key=password keyUsage=persistent
netsh wlan start hostednetwork


After I run this script, I can see a new network connection appear in "Control PanelNetwork and InternetNetwork Connections" named "Local Area Connection *12", and I can see "MyWifiName" on the Android phone. The device name for this connection on the PC is "Microsoft Hosted Network Virtual Adapter". I also set up the "Ethernet" connection to share Internet with "Local Area Connection *12".



However, the Android phone usually doesn't manage to obtain an IP from the wireless network, and when it does, there still seems to be no connectivity to the internet.
When I turn off the Windows Firewall completely, or even just for "Local Area Connection *12", the Android connection is perfect.



My questions are:




  1. How should I set up the Windows firewall to allow the phone to connect properly? Is there a specific rule I need to add to the Windows firewall advanced settings? [Note: the above method worked great in Windows 7, without any specific tinkering with the firewall].


  2. Is it safe to turn off the firewall specifically for the "Local Area Connection *12" (the wifi connection) if the main Ethernet connection is still protected by the firewall?



Thanks in advance.



EDIT:
Some new information:



Seems like the problem is also connected to how many devices are trying to connect. Apparently the wireless network I've set up doesn't allow (for unknown reasons) more than one concurrently connected client. I haven't noticed this before since my tablet that was somewhere in the room was connecting to the network automatically, thus leaving the phone with no connectivity.



So I guess the updated question is : why can't I connect more than one device to the network? (No problem doing that in Windows 7.)







wireless-networking windows-8 firewall






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 6 '12 at 20:30

























asked Nov 17 '12 at 22:16









hannanaha

81115




81115












  • Have you tried static IP address? Because I had the same problem but after setting a static IP, it works fine(my adapter is TP-Link TL WN721N).
    – RogUE
    Apr 27 '15 at 3:16


















  • Have you tried static IP address? Because I had the same problem but after setting a static IP, it works fine(my adapter is TP-Link TL WN721N).
    – RogUE
    Apr 27 '15 at 3:16
















Have you tried static IP address? Because I had the same problem but after setting a static IP, it works fine(my adapter is TP-Link TL WN721N).
– RogUE
Apr 27 '15 at 3:16




Have you tried static IP address? Because I had the same problem but after setting a static IP, it works fine(my adapter is TP-Link TL WN721N).
– RogUE
Apr 27 '15 at 3:16










1 Answer
1






active

oldest

votes

















up vote
0
down vote













It sounds like the DHCP requests from the Android phone might be getting blocked. If you trust all the devices that will connect to your hosted network, you can probably get away with disabling the firewall, just make sure you're using a strong wireless password. Alternatively you could keep it on and create an inbound Windows firewall rule to allow all traffic from that IP address. You'd have to create a "custom" rule (if it's like in Windows 7).



http://www.rackspace.com/knowledge_center/article/creating-an-inbound-custom-allow-rule-for-windows-firewall-windows-2008






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f507083%2fhow-to-setup-firewall-to-allow-internet-connection-sharing-via-wifi-usb-stick%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    It sounds like the DHCP requests from the Android phone might be getting blocked. If you trust all the devices that will connect to your hosted network, you can probably get away with disabling the firewall, just make sure you're using a strong wireless password. Alternatively you could keep it on and create an inbound Windows firewall rule to allow all traffic from that IP address. You'd have to create a "custom" rule (if it's like in Windows 7).



    http://www.rackspace.com/knowledge_center/article/creating-an-inbound-custom-allow-rule-for-windows-firewall-windows-2008






    share|improve this answer

























      up vote
      0
      down vote













      It sounds like the DHCP requests from the Android phone might be getting blocked. If you trust all the devices that will connect to your hosted network, you can probably get away with disabling the firewall, just make sure you're using a strong wireless password. Alternatively you could keep it on and create an inbound Windows firewall rule to allow all traffic from that IP address. You'd have to create a "custom" rule (if it's like in Windows 7).



      http://www.rackspace.com/knowledge_center/article/creating-an-inbound-custom-allow-rule-for-windows-firewall-windows-2008






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        It sounds like the DHCP requests from the Android phone might be getting blocked. If you trust all the devices that will connect to your hosted network, you can probably get away with disabling the firewall, just make sure you're using a strong wireless password. Alternatively you could keep it on and create an inbound Windows firewall rule to allow all traffic from that IP address. You'd have to create a "custom" rule (if it's like in Windows 7).



        http://www.rackspace.com/knowledge_center/article/creating-an-inbound-custom-allow-rule-for-windows-firewall-windows-2008






        share|improve this answer












        It sounds like the DHCP requests from the Android phone might be getting blocked. If you trust all the devices that will connect to your hosted network, you can probably get away with disabling the firewall, just make sure you're using a strong wireless password. Alternatively you could keep it on and create an inbound Windows firewall rule to allow all traffic from that IP address. You'd have to create a "custom" rule (if it's like in Windows 7).



        http://www.rackspace.com/knowledge_center/article/creating-an-inbound-custom-allow-rule-for-windows-firewall-windows-2008







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 18 '12 at 2:18









        trpt4him

        1,240815




        1,240815






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f507083%2fhow-to-setup-firewall-to-allow-internet-connection-sharing-via-wifi-usb-stick%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            RAC Tourist Trophy