IPCONFIG for one network adaptor only












15















Is it possbible for IPCONFIG on Vista to display the status of one adaptor only.
I have so many adaptors that the one I want has scrolled off the top.



Alternatively, is there another program that could display the status of a specfic adaptor (IP address etc)










share|improve this question























  • 'ipconfig | more' not an answer to your question, but a solution

    – Joakim Elofsson
    Aug 8 '09 at 22:57











  • btw use 'space' to show more

    – Joakim Elofsson
    Aug 8 '09 at 23:04











  • Yes - 'ipconfig | more' is a reasonable workround. I would prefer if IPCONFIG could be selective but there one is.... If this was an answer I would accept it

    – justintime
    Aug 9 '09 at 18:21
















15















Is it possbible for IPCONFIG on Vista to display the status of one adaptor only.
I have so many adaptors that the one I want has scrolled off the top.



Alternatively, is there another program that could display the status of a specfic adaptor (IP address etc)










share|improve this question























  • 'ipconfig | more' not an answer to your question, but a solution

    – Joakim Elofsson
    Aug 8 '09 at 22:57











  • btw use 'space' to show more

    – Joakim Elofsson
    Aug 8 '09 at 23:04











  • Yes - 'ipconfig | more' is a reasonable workround. I would prefer if IPCONFIG could be selective but there one is.... If this was an answer I would accept it

    – justintime
    Aug 9 '09 at 18:21














15












15








15


7






Is it possbible for IPCONFIG on Vista to display the status of one adaptor only.
I have so many adaptors that the one I want has scrolled off the top.



Alternatively, is there another program that could display the status of a specfic adaptor (IP address etc)










share|improve this question














Is it possbible for IPCONFIG on Vista to display the status of one adaptor only.
I have so many adaptors that the one I want has scrolled off the top.



Alternatively, is there another program that could display the status of a specfic adaptor (IP address etc)







windows-vista networking






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 8 '09 at 15:21









justintimejustintime

1,29642032




1,29642032













  • 'ipconfig | more' not an answer to your question, but a solution

    – Joakim Elofsson
    Aug 8 '09 at 22:57











  • btw use 'space' to show more

    – Joakim Elofsson
    Aug 8 '09 at 23:04











  • Yes - 'ipconfig | more' is a reasonable workround. I would prefer if IPCONFIG could be selective but there one is.... If this was an answer I would accept it

    – justintime
    Aug 9 '09 at 18:21



















  • 'ipconfig | more' not an answer to your question, but a solution

    – Joakim Elofsson
    Aug 8 '09 at 22:57











  • btw use 'space' to show more

    – Joakim Elofsson
    Aug 8 '09 at 23:04











  • Yes - 'ipconfig | more' is a reasonable workround. I would prefer if IPCONFIG could be selective but there one is.... If this was an answer I would accept it

    – justintime
    Aug 9 '09 at 18:21

















'ipconfig | more' not an answer to your question, but a solution

– Joakim Elofsson
Aug 8 '09 at 22:57





'ipconfig | more' not an answer to your question, but a solution

– Joakim Elofsson
Aug 8 '09 at 22:57













btw use 'space' to show more

– Joakim Elofsson
Aug 8 '09 at 23:04





btw use 'space' to show more

– Joakim Elofsson
Aug 8 '09 at 23:04













Yes - 'ipconfig | more' is a reasonable workround. I would prefer if IPCONFIG could be selective but there one is.... If this was an answer I would accept it

– justintime
Aug 9 '09 at 18:21





Yes - 'ipconfig | more' is a reasonable workround. I would prefer if IPCONFIG could be selective but there one is.... If this was an answer I would accept it

– justintime
Aug 9 '09 at 18:21










7 Answers
7






active

oldest

votes


















25














It's not as short as ipconfig, but you can use netsh to do this:




> netsh interface ip show addresses "Local Area Connection"

Configuration for interface "Local Area Connection"
DHCP enabled: Yes
IP Address: 10.34.46.91
Subnet Prefix: 10.34.46.0/24 (mask 255.255.255.0)
Default Gateway: 10.34.46.254
Gateway Metric: 0
Default Gateway: 10.10.124.14
Gateway Metric: 0
Default Gateway: 139.30.107.176
Gateway Metric: 0
InterfaceMetric: 4245


Replace "ip" in the command by "ipv6" to get IPv6 information.



Put it into a batch for less typing :-)






share|improve this answer



















  • 1





    Discovered the grep-like | findstr "<string>" for those parsing the output (in my case, looking for subnet information).

    – msanford
    Jun 2 '14 at 18:01



















2















netsh interface ip show addresses "Local Area Connection"




just a sidenote: This doesn't reflect the current state.



When I tried this solution to check the dhcp address, it wouldn't update the status until ipconfig was issued.






share|improve this answer































    1














    From your question it sounds like you're not aware that you can change the Screen Buffer Size for the command window in Windows? This gives you a scroll bar at the side of the window that you can use to scroll back up to view info that's scrolled off the top of the window.



    On the console window click the icon at the left of the title bar (or just right-click the title bar) select Defaults, click the Layout tab, change the Screen Buffer Size Height to something quite a few times larger than the Window Size Height (mine are currently 25 lines height for the window, but 300 lines for the screen buffer height).



    Can't remember if this was on by default for Vista or not, but for XP and prior you definitely had to go in and manually change it to something sensible yourself.



    The other very useful option that I always change on a new install are switching on QuickEdit Mode on the first tab. This lets you select text in the command window with the mouse, then just hit Enter to send it to the clipboard, and just right click on the console window to paste (obviously don't switch this on if you use any console apps that use the mouse).






    share|improve this answer
























    • Doesn't it already default to 80x300? (Unless the poster still uses command.com...)

      – grawity
      Aug 9 '09 at 7:55











    • Thanks for tip - I am aware that you can change the the buffer size, but would prefer not to have to scroll back.

      – justintime
      Aug 9 '09 at 18:18



















    1














    I installed Gnu Grep for windows and then modified my path so I could run grep from anywhere



    Then I made a batch file that contains



    ipconfig | grep -A5 -i "Ethernet Adapter Local Area Connection:"


    I have a TON of adapters so ipconfig by itself was a pain.






    share|improve this answer
























    • Been looking for that.

      – Mandark
      Nov 13 '16 at 11:35



















    1














    Please see https://sysinfo.io/output-ip-address-with-ipconfig/.



    To achieve your goal of only outputting one adapter, simply pipe the string of commands to head (from the GnuWin32 package).



    :: Output network adapter name and IP addresses using native commands only

    ipconfig /all | findstr /IR "ipv4 ethernet adapter" | findstr /IRV "description tunnel vpn dial bluetooth [2-9]:$" | findstr /LV "*"

    :: Using grep binary from gnuwin32 output only network adapter name and IP addresses

    ipconfig /all | grep -iE "ipv4|ethernet|adapter" | grep -iEv "description|tunnel|vpn|dial|bluetooth|[2-9]:$" | grep -iFv "connection*"

    :: And one more that yields the bare essentials (hostname, adapter name, MAC, IPv4, subnet, gateway, DNS)
    :: I purposefully excluded v6 addresses because I don't have a need, if you need then just omit it

    ipconfig /all | findstr -iv "ipv6 bluetooth Description DHCP Autoconfiguration Netbios routing wins node Connection-specific obtained expires disconnected"





    share|improve this answer


























    • Welcome to Super User! Can you include the relevant info from your link - ie what command to issue, how to install head ? Cheers!

      – bertieb
      Feb 14 at 13:31











    • @bertieb Your wish is my command. It has been done. Link is included to the official source of GnuWin32.

      – Travis R.
      Feb 14 at 22:27



















    0














    Just a side note, you can use command redirection to output the results to a file so that you can pull it up in notepad and see what has scrolled off. You could combine this with a batch file that runs the command, then opens the resulting file in notepad automatically. Sorry, I know that's not exactly what you want but thought I'd throw that out there.



    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true






    share|improve this answer































      0














      You can also view that information in the Network and Sharing Center.



      From the Network and Sharing Center, click "Manage network Adapters" or similar - this will show the network connections folder. If you double click on a connection, you'll see the same output as ipconfig in a gui.






      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',
        autoActivateHeartbeat: false,
        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%2f19992%2fipconfig-for-one-network-adaptor-only%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        7 Answers
        7






        active

        oldest

        votes








        7 Answers
        7






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        25














        It's not as short as ipconfig, but you can use netsh to do this:




        > netsh interface ip show addresses "Local Area Connection"

        Configuration for interface "Local Area Connection"
        DHCP enabled: Yes
        IP Address: 10.34.46.91
        Subnet Prefix: 10.34.46.0/24 (mask 255.255.255.0)
        Default Gateway: 10.34.46.254
        Gateway Metric: 0
        Default Gateway: 10.10.124.14
        Gateway Metric: 0
        Default Gateway: 139.30.107.176
        Gateway Metric: 0
        InterfaceMetric: 4245


        Replace "ip" in the command by "ipv6" to get IPv6 information.



        Put it into a batch for less typing :-)






        share|improve this answer



















        • 1





          Discovered the grep-like | findstr "<string>" for those parsing the output (in my case, looking for subnet information).

          – msanford
          Jun 2 '14 at 18:01
















        25














        It's not as short as ipconfig, but you can use netsh to do this:




        > netsh interface ip show addresses "Local Area Connection"

        Configuration for interface "Local Area Connection"
        DHCP enabled: Yes
        IP Address: 10.34.46.91
        Subnet Prefix: 10.34.46.0/24 (mask 255.255.255.0)
        Default Gateway: 10.34.46.254
        Gateway Metric: 0
        Default Gateway: 10.10.124.14
        Gateway Metric: 0
        Default Gateway: 139.30.107.176
        Gateway Metric: 0
        InterfaceMetric: 4245


        Replace "ip" in the command by "ipv6" to get IPv6 information.



        Put it into a batch for less typing :-)






        share|improve this answer



















        • 1





          Discovered the grep-like | findstr "<string>" for those parsing the output (in my case, looking for subnet information).

          – msanford
          Jun 2 '14 at 18:01














        25












        25








        25







        It's not as short as ipconfig, but you can use netsh to do this:




        > netsh interface ip show addresses "Local Area Connection"

        Configuration for interface "Local Area Connection"
        DHCP enabled: Yes
        IP Address: 10.34.46.91
        Subnet Prefix: 10.34.46.0/24 (mask 255.255.255.0)
        Default Gateway: 10.34.46.254
        Gateway Metric: 0
        Default Gateway: 10.10.124.14
        Gateway Metric: 0
        Default Gateway: 139.30.107.176
        Gateway Metric: 0
        InterfaceMetric: 4245


        Replace "ip" in the command by "ipv6" to get IPv6 information.



        Put it into a batch for less typing :-)






        share|improve this answer













        It's not as short as ipconfig, but you can use netsh to do this:




        > netsh interface ip show addresses "Local Area Connection"

        Configuration for interface "Local Area Connection"
        DHCP enabled: Yes
        IP Address: 10.34.46.91
        Subnet Prefix: 10.34.46.0/24 (mask 255.255.255.0)
        Default Gateway: 10.34.46.254
        Gateway Metric: 0
        Default Gateway: 10.10.124.14
        Gateway Metric: 0
        Default Gateway: 139.30.107.176
        Gateway Metric: 0
        InterfaceMetric: 4245


        Replace "ip" in the command by "ipv6" to get IPv6 information.



        Put it into a batch for less typing :-)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 8 '09 at 15:30









        JoeyJoey

        33.4k1089119




        33.4k1089119








        • 1





          Discovered the grep-like | findstr "<string>" for those parsing the output (in my case, looking for subnet information).

          – msanford
          Jun 2 '14 at 18:01














        • 1





          Discovered the grep-like | findstr "<string>" for those parsing the output (in my case, looking for subnet information).

          – msanford
          Jun 2 '14 at 18:01








        1




        1





        Discovered the grep-like | findstr "<string>" for those parsing the output (in my case, looking for subnet information).

        – msanford
        Jun 2 '14 at 18:01





        Discovered the grep-like | findstr "<string>" for those parsing the output (in my case, looking for subnet information).

        – msanford
        Jun 2 '14 at 18:01













        2















        netsh interface ip show addresses "Local Area Connection"




        just a sidenote: This doesn't reflect the current state.



        When I tried this solution to check the dhcp address, it wouldn't update the status until ipconfig was issued.






        share|improve this answer




























          2















          netsh interface ip show addresses "Local Area Connection"




          just a sidenote: This doesn't reflect the current state.



          When I tried this solution to check the dhcp address, it wouldn't update the status until ipconfig was issued.






          share|improve this answer


























            2












            2








            2








            netsh interface ip show addresses "Local Area Connection"




            just a sidenote: This doesn't reflect the current state.



            When I tried this solution to check the dhcp address, it wouldn't update the status until ipconfig was issued.






            share|improve this answer














            netsh interface ip show addresses "Local Area Connection"




            just a sidenote: This doesn't reflect the current state.



            When I tried this solution to check the dhcp address, it wouldn't update the status until ipconfig was issued.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 14 '13 at 9:00









            user273962user273962

            211




            211























                1














                From your question it sounds like you're not aware that you can change the Screen Buffer Size for the command window in Windows? This gives you a scroll bar at the side of the window that you can use to scroll back up to view info that's scrolled off the top of the window.



                On the console window click the icon at the left of the title bar (or just right-click the title bar) select Defaults, click the Layout tab, change the Screen Buffer Size Height to something quite a few times larger than the Window Size Height (mine are currently 25 lines height for the window, but 300 lines for the screen buffer height).



                Can't remember if this was on by default for Vista or not, but for XP and prior you definitely had to go in and manually change it to something sensible yourself.



                The other very useful option that I always change on a new install are switching on QuickEdit Mode on the first tab. This lets you select text in the command window with the mouse, then just hit Enter to send it to the clipboard, and just right click on the console window to paste (obviously don't switch this on if you use any console apps that use the mouse).






                share|improve this answer
























                • Doesn't it already default to 80x300? (Unless the poster still uses command.com...)

                  – grawity
                  Aug 9 '09 at 7:55











                • Thanks for tip - I am aware that you can change the the buffer size, but would prefer not to have to scroll back.

                  – justintime
                  Aug 9 '09 at 18:18
















                1














                From your question it sounds like you're not aware that you can change the Screen Buffer Size for the command window in Windows? This gives you a scroll bar at the side of the window that you can use to scroll back up to view info that's scrolled off the top of the window.



                On the console window click the icon at the left of the title bar (or just right-click the title bar) select Defaults, click the Layout tab, change the Screen Buffer Size Height to something quite a few times larger than the Window Size Height (mine are currently 25 lines height for the window, but 300 lines for the screen buffer height).



                Can't remember if this was on by default for Vista or not, but for XP and prior you definitely had to go in and manually change it to something sensible yourself.



                The other very useful option that I always change on a new install are switching on QuickEdit Mode on the first tab. This lets you select text in the command window with the mouse, then just hit Enter to send it to the clipboard, and just right click on the console window to paste (obviously don't switch this on if you use any console apps that use the mouse).






                share|improve this answer
























                • Doesn't it already default to 80x300? (Unless the poster still uses command.com...)

                  – grawity
                  Aug 9 '09 at 7:55











                • Thanks for tip - I am aware that you can change the the buffer size, but would prefer not to have to scroll back.

                  – justintime
                  Aug 9 '09 at 18:18














                1












                1








                1







                From your question it sounds like you're not aware that you can change the Screen Buffer Size for the command window in Windows? This gives you a scroll bar at the side of the window that you can use to scroll back up to view info that's scrolled off the top of the window.



                On the console window click the icon at the left of the title bar (or just right-click the title bar) select Defaults, click the Layout tab, change the Screen Buffer Size Height to something quite a few times larger than the Window Size Height (mine are currently 25 lines height for the window, but 300 lines for the screen buffer height).



                Can't remember if this was on by default for Vista or not, but for XP and prior you definitely had to go in and manually change it to something sensible yourself.



                The other very useful option that I always change on a new install are switching on QuickEdit Mode on the first tab. This lets you select text in the command window with the mouse, then just hit Enter to send it to the clipboard, and just right click on the console window to paste (obviously don't switch this on if you use any console apps that use the mouse).






                share|improve this answer













                From your question it sounds like you're not aware that you can change the Screen Buffer Size for the command window in Windows? This gives you a scroll bar at the side of the window that you can use to scroll back up to view info that's scrolled off the top of the window.



                On the console window click the icon at the left of the title bar (or just right-click the title bar) select Defaults, click the Layout tab, change the Screen Buffer Size Height to something quite a few times larger than the Window Size Height (mine are currently 25 lines height for the window, but 300 lines for the screen buffer height).



                Can't remember if this was on by default for Vista or not, but for XP and prior you definitely had to go in and manually change it to something sensible yourself.



                The other very useful option that I always change on a new install are switching on QuickEdit Mode on the first tab. This lets you select text in the command window with the mouse, then just hit Enter to send it to the clipboard, and just right click on the console window to paste (obviously don't switch this on if you use any console apps that use the mouse).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 8 '09 at 22:34









                GAThrawnGAThrawn

                4,06821741




                4,06821741













                • Doesn't it already default to 80x300? (Unless the poster still uses command.com...)

                  – grawity
                  Aug 9 '09 at 7:55











                • Thanks for tip - I am aware that you can change the the buffer size, but would prefer not to have to scroll back.

                  – justintime
                  Aug 9 '09 at 18:18



















                • Doesn't it already default to 80x300? (Unless the poster still uses command.com...)

                  – grawity
                  Aug 9 '09 at 7:55











                • Thanks for tip - I am aware that you can change the the buffer size, but would prefer not to have to scroll back.

                  – justintime
                  Aug 9 '09 at 18:18

















                Doesn't it already default to 80x300? (Unless the poster still uses command.com...)

                – grawity
                Aug 9 '09 at 7:55





                Doesn't it already default to 80x300? (Unless the poster still uses command.com...)

                – grawity
                Aug 9 '09 at 7:55













                Thanks for tip - I am aware that you can change the the buffer size, but would prefer not to have to scroll back.

                – justintime
                Aug 9 '09 at 18:18





                Thanks for tip - I am aware that you can change the the buffer size, but would prefer not to have to scroll back.

                – justintime
                Aug 9 '09 at 18:18











                1














                I installed Gnu Grep for windows and then modified my path so I could run grep from anywhere



                Then I made a batch file that contains



                ipconfig | grep -A5 -i "Ethernet Adapter Local Area Connection:"


                I have a TON of adapters so ipconfig by itself was a pain.






                share|improve this answer
























                • Been looking for that.

                  – Mandark
                  Nov 13 '16 at 11:35
















                1














                I installed Gnu Grep for windows and then modified my path so I could run grep from anywhere



                Then I made a batch file that contains



                ipconfig | grep -A5 -i "Ethernet Adapter Local Area Connection:"


                I have a TON of adapters so ipconfig by itself was a pain.






                share|improve this answer
























                • Been looking for that.

                  – Mandark
                  Nov 13 '16 at 11:35














                1












                1








                1







                I installed Gnu Grep for windows and then modified my path so I could run grep from anywhere



                Then I made a batch file that contains



                ipconfig | grep -A5 -i "Ethernet Adapter Local Area Connection:"


                I have a TON of adapters so ipconfig by itself was a pain.






                share|improve this answer













                I installed Gnu Grep for windows and then modified my path so I could run grep from anywhere



                Then I made a batch file that contains



                ipconfig | grep -A5 -i "Ethernet Adapter Local Area Connection:"


                I have a TON of adapters so ipconfig by itself was a pain.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 7 '14 at 4:48









                Steve ByrumSteve Byrum

                111




                111













                • Been looking for that.

                  – Mandark
                  Nov 13 '16 at 11:35



















                • Been looking for that.

                  – Mandark
                  Nov 13 '16 at 11:35

















                Been looking for that.

                – Mandark
                Nov 13 '16 at 11:35





                Been looking for that.

                – Mandark
                Nov 13 '16 at 11:35











                1














                Please see https://sysinfo.io/output-ip-address-with-ipconfig/.



                To achieve your goal of only outputting one adapter, simply pipe the string of commands to head (from the GnuWin32 package).



                :: Output network adapter name and IP addresses using native commands only

                ipconfig /all | findstr /IR "ipv4 ethernet adapter" | findstr /IRV "description tunnel vpn dial bluetooth [2-9]:$" | findstr /LV "*"

                :: Using grep binary from gnuwin32 output only network adapter name and IP addresses

                ipconfig /all | grep -iE "ipv4|ethernet|adapter" | grep -iEv "description|tunnel|vpn|dial|bluetooth|[2-9]:$" | grep -iFv "connection*"

                :: And one more that yields the bare essentials (hostname, adapter name, MAC, IPv4, subnet, gateway, DNS)
                :: I purposefully excluded v6 addresses because I don't have a need, if you need then just omit it

                ipconfig /all | findstr -iv "ipv6 bluetooth Description DHCP Autoconfiguration Netbios routing wins node Connection-specific obtained expires disconnected"





                share|improve this answer


























                • Welcome to Super User! Can you include the relevant info from your link - ie what command to issue, how to install head ? Cheers!

                  – bertieb
                  Feb 14 at 13:31











                • @bertieb Your wish is my command. It has been done. Link is included to the official source of GnuWin32.

                  – Travis R.
                  Feb 14 at 22:27
















                1














                Please see https://sysinfo.io/output-ip-address-with-ipconfig/.



                To achieve your goal of only outputting one adapter, simply pipe the string of commands to head (from the GnuWin32 package).



                :: Output network adapter name and IP addresses using native commands only

                ipconfig /all | findstr /IR "ipv4 ethernet adapter" | findstr /IRV "description tunnel vpn dial bluetooth [2-9]:$" | findstr /LV "*"

                :: Using grep binary from gnuwin32 output only network adapter name and IP addresses

                ipconfig /all | grep -iE "ipv4|ethernet|adapter" | grep -iEv "description|tunnel|vpn|dial|bluetooth|[2-9]:$" | grep -iFv "connection*"

                :: And one more that yields the bare essentials (hostname, adapter name, MAC, IPv4, subnet, gateway, DNS)
                :: I purposefully excluded v6 addresses because I don't have a need, if you need then just omit it

                ipconfig /all | findstr -iv "ipv6 bluetooth Description DHCP Autoconfiguration Netbios routing wins node Connection-specific obtained expires disconnected"





                share|improve this answer


























                • Welcome to Super User! Can you include the relevant info from your link - ie what command to issue, how to install head ? Cheers!

                  – bertieb
                  Feb 14 at 13:31











                • @bertieb Your wish is my command. It has been done. Link is included to the official source of GnuWin32.

                  – Travis R.
                  Feb 14 at 22:27














                1












                1








                1







                Please see https://sysinfo.io/output-ip-address-with-ipconfig/.



                To achieve your goal of only outputting one adapter, simply pipe the string of commands to head (from the GnuWin32 package).



                :: Output network adapter name and IP addresses using native commands only

                ipconfig /all | findstr /IR "ipv4 ethernet adapter" | findstr /IRV "description tunnel vpn dial bluetooth [2-9]:$" | findstr /LV "*"

                :: Using grep binary from gnuwin32 output only network adapter name and IP addresses

                ipconfig /all | grep -iE "ipv4|ethernet|adapter" | grep -iEv "description|tunnel|vpn|dial|bluetooth|[2-9]:$" | grep -iFv "connection*"

                :: And one more that yields the bare essentials (hostname, adapter name, MAC, IPv4, subnet, gateway, DNS)
                :: I purposefully excluded v6 addresses because I don't have a need, if you need then just omit it

                ipconfig /all | findstr -iv "ipv6 bluetooth Description DHCP Autoconfiguration Netbios routing wins node Connection-specific obtained expires disconnected"





                share|improve this answer















                Please see https://sysinfo.io/output-ip-address-with-ipconfig/.



                To achieve your goal of only outputting one adapter, simply pipe the string of commands to head (from the GnuWin32 package).



                :: Output network adapter name and IP addresses using native commands only

                ipconfig /all | findstr /IR "ipv4 ethernet adapter" | findstr /IRV "description tunnel vpn dial bluetooth [2-9]:$" | findstr /LV "*"

                :: Using grep binary from gnuwin32 output only network adapter name and IP addresses

                ipconfig /all | grep -iE "ipv4|ethernet|adapter" | grep -iEv "description|tunnel|vpn|dial|bluetooth|[2-9]:$" | grep -iFv "connection*"

                :: And one more that yields the bare essentials (hostname, adapter name, MAC, IPv4, subnet, gateway, DNS)
                :: I purposefully excluded v6 addresses because I don't have a need, if you need then just omit it

                ipconfig /all | findstr -iv "ipv6 bluetooth Description DHCP Autoconfiguration Netbios routing wins node Connection-specific obtained expires disconnected"






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Feb 14 at 22:26

























                answered Feb 14 at 12:40









                Travis R.Travis R.

                113




                113













                • Welcome to Super User! Can you include the relevant info from your link - ie what command to issue, how to install head ? Cheers!

                  – bertieb
                  Feb 14 at 13:31











                • @bertieb Your wish is my command. It has been done. Link is included to the official source of GnuWin32.

                  – Travis R.
                  Feb 14 at 22:27



















                • Welcome to Super User! Can you include the relevant info from your link - ie what command to issue, how to install head ? Cheers!

                  – bertieb
                  Feb 14 at 13:31











                • @bertieb Your wish is my command. It has been done. Link is included to the official source of GnuWin32.

                  – Travis R.
                  Feb 14 at 22:27

















                Welcome to Super User! Can you include the relevant info from your link - ie what command to issue, how to install head ? Cheers!

                – bertieb
                Feb 14 at 13:31





                Welcome to Super User! Can you include the relevant info from your link - ie what command to issue, how to install head ? Cheers!

                – bertieb
                Feb 14 at 13:31













                @bertieb Your wish is my command. It has been done. Link is included to the official source of GnuWin32.

                – Travis R.
                Feb 14 at 22:27





                @bertieb Your wish is my command. It has been done. Link is included to the official source of GnuWin32.

                – Travis R.
                Feb 14 at 22:27











                0














                Just a side note, you can use command redirection to output the results to a file so that you can pull it up in notepad and see what has scrolled off. You could combine this with a batch file that runs the command, then opens the resulting file in notepad automatically. Sorry, I know that's not exactly what you want but thought I'd throw that out there.



                http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true






                share|improve this answer




























                  0














                  Just a side note, you can use command redirection to output the results to a file so that you can pull it up in notepad and see what has scrolled off. You could combine this with a batch file that runs the command, then opens the resulting file in notepad automatically. Sorry, I know that's not exactly what you want but thought I'd throw that out there.



                  http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true






                  share|improve this answer


























                    0












                    0








                    0







                    Just a side note, you can use command redirection to output the results to a file so that you can pull it up in notepad and see what has scrolled off. You could combine this with a batch file that runs the command, then opens the resulting file in notepad automatically. Sorry, I know that's not exactly what you want but thought I'd throw that out there.



                    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true






                    share|improve this answer













                    Just a side note, you can use command redirection to output the results to a file so that you can pull it up in notepad and see what has scrolled off. You could combine this with a batch file that runs the command, then opens the resulting file in notepad automatically. Sorry, I know that's not exactly what you want but thought I'd throw that out there.



                    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Aug 8 '09 at 17:22









                    AaronLSAaronLS

                    1,57632227




                    1,57632227























                        0














                        You can also view that information in the Network and Sharing Center.



                        From the Network and Sharing Center, click "Manage network Adapters" or similar - this will show the network connections folder. If you double click on a connection, you'll see the same output as ipconfig in a gui.






                        share|improve this answer




























                          0














                          You can also view that information in the Network and Sharing Center.



                          From the Network and Sharing Center, click "Manage network Adapters" or similar - this will show the network connections folder. If you double click on a connection, you'll see the same output as ipconfig in a gui.






                          share|improve this answer


























                            0












                            0








                            0







                            You can also view that information in the Network and Sharing Center.



                            From the Network and Sharing Center, click "Manage network Adapters" or similar - this will show the network connections folder. If you double click on a connection, you'll see the same output as ipconfig in a gui.






                            share|improve this answer













                            You can also view that information in the Network and Sharing Center.



                            From the Network and Sharing Center, click "Manage network Adapters" or similar - this will show the network connections folder. If you double click on a connection, you'll see the same output as ipconfig in a gui.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Aug 8 '09 at 17:50









                            EvilChookieEvilChookie

                            4,34912034




                            4,34912034






























                                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.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f19992%2fipconfig-for-one-network-adaptor-only%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

                                flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                Mangá

                                 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕