How do I get IP of installed network printer











up vote
4
down vote

favorite












I have installed a network printer in my Ubuntu 14.04 machine by using system-config-printer. This GUI program offers a "Find network printer" function, that explores the local network. It returns a list of printers names, associated with IP adresses.



So let's say I choose one and successfully install it.



Now after a while I realize the one I installed is the wrong printer. So I do the process again, and... oh wait, there are several printers of same type (and name), with different IP adresses!



Ok, no problem, lets just check the IP of the one I just installed, so I make sure I don't install the wrong one again. So the question is: how to I get the IP of an installed printer ?



Apparently, the "properties" dialog (sample below) does not give access to this information (no, its not hidden in the URI line).



No success either by using the CUPS webserver through http://localhost:631, it seems to be basically another way of getting the same information.



Edit: the question isn't related to the printer below but is more general: as the OS is able to fetch the printer's IP at the network exploring step, I assume that information is stored somewhere. Where is it stored and how do I access it ? Or maybe it isn't stored anywhere ?



printer properties dialog










share|improve this question




























    up vote
    4
    down vote

    favorite












    I have installed a network printer in my Ubuntu 14.04 machine by using system-config-printer. This GUI program offers a "Find network printer" function, that explores the local network. It returns a list of printers names, associated with IP adresses.



    So let's say I choose one and successfully install it.



    Now after a while I realize the one I installed is the wrong printer. So I do the process again, and... oh wait, there are several printers of same type (and name), with different IP adresses!



    Ok, no problem, lets just check the IP of the one I just installed, so I make sure I don't install the wrong one again. So the question is: how to I get the IP of an installed printer ?



    Apparently, the "properties" dialog (sample below) does not give access to this information (no, its not hidden in the URI line).



    No success either by using the CUPS webserver through http://localhost:631, it seems to be basically another way of getting the same information.



    Edit: the question isn't related to the printer below but is more general: as the OS is able to fetch the printer's IP at the network exploring step, I assume that information is stored somewhere. Where is it stored and how do I access it ? Or maybe it isn't stored anywhere ?



    printer properties dialog










    share|improve this question


























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I have installed a network printer in my Ubuntu 14.04 machine by using system-config-printer. This GUI program offers a "Find network printer" function, that explores the local network. It returns a list of printers names, associated with IP adresses.



      So let's say I choose one and successfully install it.



      Now after a while I realize the one I installed is the wrong printer. So I do the process again, and... oh wait, there are several printers of same type (and name), with different IP adresses!



      Ok, no problem, lets just check the IP of the one I just installed, so I make sure I don't install the wrong one again. So the question is: how to I get the IP of an installed printer ?



      Apparently, the "properties" dialog (sample below) does not give access to this information (no, its not hidden in the URI line).



      No success either by using the CUPS webserver through http://localhost:631, it seems to be basically another way of getting the same information.



      Edit: the question isn't related to the printer below but is more general: as the OS is able to fetch the printer's IP at the network exploring step, I assume that information is stored somewhere. Where is it stored and how do I access it ? Or maybe it isn't stored anywhere ?



      printer properties dialog










      share|improve this question















      I have installed a network printer in my Ubuntu 14.04 machine by using system-config-printer. This GUI program offers a "Find network printer" function, that explores the local network. It returns a list of printers names, associated with IP adresses.



      So let's say I choose one and successfully install it.



      Now after a while I realize the one I installed is the wrong printer. So I do the process again, and... oh wait, there are several printers of same type (and name), with different IP adresses!



      Ok, no problem, lets just check the IP of the one I just installed, so I make sure I don't install the wrong one again. So the question is: how to I get the IP of an installed printer ?



      Apparently, the "properties" dialog (sample below) does not give access to this information (no, its not hidden in the URI line).



      No success either by using the CUPS webserver through http://localhost:631, it seems to be basically another way of getting the same information.



      Edit: the question isn't related to the printer below but is more general: as the OS is able to fetch the printer's IP at the network exploring step, I assume that information is stored somewhere. Where is it stored and how do I access it ? Or maybe it isn't stored anywhere ?



      printer properties dialog







      printing ip






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 3 '15 at 8:19

























      asked Jul 2 '15 at 13:28









      kebs

      155119




      155119






















          5 Answers
          5






          active

          oldest

          votes

















          up vote
          7
          down vote













          According to the HP Laserjet 2400-series User Guide, the IP address is available on the control panel of the printer itself.



          enter image description here






          share|improve this answer

















          • 1




            Thanks ;-) Wasn't exactly what I expected, but useful anyway. But isn't a way to get that from the OS ? The question wasn't specifically about that printer...
            – kebs
            Jul 3 '15 at 5:29


















          up vote
          6
          down vote













          Using lpoptions



          lpoptions  -p <printer_name> | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'




          Example



          $ lpoptions  -p TOSHIBA_e-STUDIO2330C | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'
          device-uri=socket://192.168.20.43




          To get an overview lpinfo



          Example



          $ lpinfo -v | grep -P '://'
          network dnssd://HP%20LaserJet%201022n._pdl-datastream._tcp.local/
          network dnssd://TOSHIBA%20e-STUDIO2540C-07279076._printer._tcp.local/
          network socket://192.168.20.201
          network socket://192.168.20.203
          network socket://192.168.20.204
          network socket://192.168.20.205
          network socket://192.168.20.206
          network socket://192.168.20.207
          network socket://192.168.20.43


          or nmap



          nmap -sT <adress_or_address_range>


          and grep the service printer



          Example



          $ nmap -sT 192.168.20.43

          Starting Nmap 6.47 ( http://nmap.org ) at 2015-07-03 08:38 CEST
          Nmap scan report for 192.168.20.43
          Host is up (0.0017s latency).
          Not shown: 991 closed ports
          PORT STATE SERVICE
          21/tcp open ftp
          25/tcp open smtp
          80/tcp open http
          139/tcp open netbios-ssn
          445/tcp open microsoft-ds
          515/tcp open printer
          631/tcp open ipp
          8080/tcp open http-proxy
          9100/tcp open jetdirect





          share|improve this answer























          • Thanks. In my case, lpoptions shows indeed a lot of info, but not the IP. The concerned field looks like device-uri=hp:/net/hp_LaserJet_2420?zc=HP2420ROOMXXX, so again the same as what I get from GUI tools. So I assume the IP isn't stored in my machine...
            – kebs
            Jul 7 '15 at 9:46










          • Tried nmap, does its job, but doesn't return the name/type of printer that is connected. I guess that's the best I can get.
            – kebs
            Jul 7 '15 at 9:48




















          up vote
          5
          down vote













          Look at the arp-scan command - you will probably have to install it:



          sudo apt-get install arp-scan



          http://manpages.ubuntu.com/manpages/hardy/man1/arp-scan.1.html



          And to give further detail:



          sudo arp-scan --interface=eth0 --localnet



          Where eth0 is your device (or wlan0). You can find your device with:



          ifconfig





          Or try installing nmap (sudo apt-get install nmap) and type nmap 192.168.1.0/24 substituting 192.168.1 with the first three parts of your ip address (find out using ip addr).






          share|improve this answer























          • Thanks, just tried. arp-scan works fast, but it only returns MAC adress (and shows manufacturer, deduced from MAC). I'm currently trying nmap.
            – kebs
            Jul 7 '15 at 9:32












          • For nmap, it doesn't return name/type of printer, thanks anyway.
            – kebs
            Jul 7 '15 at 9:51










          • +1 to this answer: @kebs, Running Lubuntu 18.04 LTS, I use the output from ip a to get the interface (in my case not eth0), and then the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified devices.
            – sudodus
            Dec 4 at 12:47










          • @kebs, I booted into a live drive made from the file lubuntu-14.04.1-desktop-i386.iso, and the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified device also in this case. There must be something strange with your operating system.
            – sudodus
            Dec 4 at 16:32


















          up vote
          2
          down vote













          lpstat -s


          Sometimes it doesn't have to be complicated.






          share|improve this answer





















          • Thanks, but... no (for me). It only shows how to reach the printer: protocol and URI, for example dnssd://HP%20ENVY%205XXXX. However, it clearly shows that the IP isn't stored and how reaching the device is done.
            – kebs
            Sep 11 at 9:24


















          up vote
          0
          down vote













          enter image description hereI am also using ubuntu14.04. If you want to see the IP of the printer which was installed, you'd better go to system settings and choose Printers. Then please choose the printer and see its properties. In the setting tab inside the properties, there is Device URI. Click on it and see the IP.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f643584%2fhow-do-i-get-ip-of-installed-network-printer%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            5 Answers
            5






            active

            oldest

            votes








            5 Answers
            5






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            7
            down vote













            According to the HP Laserjet 2400-series User Guide, the IP address is available on the control panel of the printer itself.



            enter image description here






            share|improve this answer

















            • 1




              Thanks ;-) Wasn't exactly what I expected, but useful anyway. But isn't a way to get that from the OS ? The question wasn't specifically about that printer...
              – kebs
              Jul 3 '15 at 5:29















            up vote
            7
            down vote













            According to the HP Laserjet 2400-series User Guide, the IP address is available on the control panel of the printer itself.



            enter image description here






            share|improve this answer

















            • 1




              Thanks ;-) Wasn't exactly what I expected, but useful anyway. But isn't a way to get that from the OS ? The question wasn't specifically about that printer...
              – kebs
              Jul 3 '15 at 5:29













            up vote
            7
            down vote










            up vote
            7
            down vote









            According to the HP Laserjet 2400-series User Guide, the IP address is available on the control panel of the printer itself.



            enter image description here






            share|improve this answer












            According to the HP Laserjet 2400-series User Guide, the IP address is available on the control panel of the printer itself.



            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 2 '15 at 13:52









            chili555

            38k55177




            38k55177








            • 1




              Thanks ;-) Wasn't exactly what I expected, but useful anyway. But isn't a way to get that from the OS ? The question wasn't specifically about that printer...
              – kebs
              Jul 3 '15 at 5:29














            • 1




              Thanks ;-) Wasn't exactly what I expected, but useful anyway. But isn't a way to get that from the OS ? The question wasn't specifically about that printer...
              – kebs
              Jul 3 '15 at 5:29








            1




            1




            Thanks ;-) Wasn't exactly what I expected, but useful anyway. But isn't a way to get that from the OS ? The question wasn't specifically about that printer...
            – kebs
            Jul 3 '15 at 5:29




            Thanks ;-) Wasn't exactly what I expected, but useful anyway. But isn't a way to get that from the OS ? The question wasn't specifically about that printer...
            – kebs
            Jul 3 '15 at 5:29












            up vote
            6
            down vote













            Using lpoptions



            lpoptions  -p <printer_name> | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'




            Example



            $ lpoptions  -p TOSHIBA_e-STUDIO2330C | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'
            device-uri=socket://192.168.20.43




            To get an overview lpinfo



            Example



            $ lpinfo -v | grep -P '://'
            network dnssd://HP%20LaserJet%201022n._pdl-datastream._tcp.local/
            network dnssd://TOSHIBA%20e-STUDIO2540C-07279076._printer._tcp.local/
            network socket://192.168.20.201
            network socket://192.168.20.203
            network socket://192.168.20.204
            network socket://192.168.20.205
            network socket://192.168.20.206
            network socket://192.168.20.207
            network socket://192.168.20.43


            or nmap



            nmap -sT <adress_or_address_range>


            and grep the service printer



            Example



            $ nmap -sT 192.168.20.43

            Starting Nmap 6.47 ( http://nmap.org ) at 2015-07-03 08:38 CEST
            Nmap scan report for 192.168.20.43
            Host is up (0.0017s latency).
            Not shown: 991 closed ports
            PORT STATE SERVICE
            21/tcp open ftp
            25/tcp open smtp
            80/tcp open http
            139/tcp open netbios-ssn
            445/tcp open microsoft-ds
            515/tcp open printer
            631/tcp open ipp
            8080/tcp open http-proxy
            9100/tcp open jetdirect





            share|improve this answer























            • Thanks. In my case, lpoptions shows indeed a lot of info, but not the IP. The concerned field looks like device-uri=hp:/net/hp_LaserJet_2420?zc=HP2420ROOMXXX, so again the same as what I get from GUI tools. So I assume the IP isn't stored in my machine...
              – kebs
              Jul 7 '15 at 9:46










            • Tried nmap, does its job, but doesn't return the name/type of printer that is connected. I guess that's the best I can get.
              – kebs
              Jul 7 '15 at 9:48

















            up vote
            6
            down vote













            Using lpoptions



            lpoptions  -p <printer_name> | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'




            Example



            $ lpoptions  -p TOSHIBA_e-STUDIO2330C | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'
            device-uri=socket://192.168.20.43




            To get an overview lpinfo



            Example



            $ lpinfo -v | grep -P '://'
            network dnssd://HP%20LaserJet%201022n._pdl-datastream._tcp.local/
            network dnssd://TOSHIBA%20e-STUDIO2540C-07279076._printer._tcp.local/
            network socket://192.168.20.201
            network socket://192.168.20.203
            network socket://192.168.20.204
            network socket://192.168.20.205
            network socket://192.168.20.206
            network socket://192.168.20.207
            network socket://192.168.20.43


            or nmap



            nmap -sT <adress_or_address_range>


            and grep the service printer



            Example



            $ nmap -sT 192.168.20.43

            Starting Nmap 6.47 ( http://nmap.org ) at 2015-07-03 08:38 CEST
            Nmap scan report for 192.168.20.43
            Host is up (0.0017s latency).
            Not shown: 991 closed ports
            PORT STATE SERVICE
            21/tcp open ftp
            25/tcp open smtp
            80/tcp open http
            139/tcp open netbios-ssn
            445/tcp open microsoft-ds
            515/tcp open printer
            631/tcp open ipp
            8080/tcp open http-proxy
            9100/tcp open jetdirect





            share|improve this answer























            • Thanks. In my case, lpoptions shows indeed a lot of info, but not the IP. The concerned field looks like device-uri=hp:/net/hp_LaserJet_2420?zc=HP2420ROOMXXX, so again the same as what I get from GUI tools. So I assume the IP isn't stored in my machine...
              – kebs
              Jul 7 '15 at 9:46










            • Tried nmap, does its job, but doesn't return the name/type of printer that is connected. I guess that's the best I can get.
              – kebs
              Jul 7 '15 at 9:48















            up vote
            6
            down vote










            up vote
            6
            down vote









            Using lpoptions



            lpoptions  -p <printer_name> | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'




            Example



            $ lpoptions  -p TOSHIBA_e-STUDIO2330C | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'
            device-uri=socket://192.168.20.43




            To get an overview lpinfo



            Example



            $ lpinfo -v | grep -P '://'
            network dnssd://HP%20LaserJet%201022n._pdl-datastream._tcp.local/
            network dnssd://TOSHIBA%20e-STUDIO2540C-07279076._printer._tcp.local/
            network socket://192.168.20.201
            network socket://192.168.20.203
            network socket://192.168.20.204
            network socket://192.168.20.205
            network socket://192.168.20.206
            network socket://192.168.20.207
            network socket://192.168.20.43


            or nmap



            nmap -sT <adress_or_address_range>


            and grep the service printer



            Example



            $ nmap -sT 192.168.20.43

            Starting Nmap 6.47 ( http://nmap.org ) at 2015-07-03 08:38 CEST
            Nmap scan report for 192.168.20.43
            Host is up (0.0017s latency).
            Not shown: 991 closed ports
            PORT STATE SERVICE
            21/tcp open ftp
            25/tcp open smtp
            80/tcp open http
            139/tcp open netbios-ssn
            445/tcp open microsoft-ds
            515/tcp open printer
            631/tcp open ipp
            8080/tcp open http-proxy
            9100/tcp open jetdirect





            share|improve this answer














            Using lpoptions



            lpoptions  -p <printer_name> | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'




            Example



            $ lpoptions  -p TOSHIBA_e-STUDIO2330C | awk '{for (i=1; i<=NF; i++) {if ($i ~ /device-uri/) {print $i}}}'
            device-uri=socket://192.168.20.43




            To get an overview lpinfo



            Example



            $ lpinfo -v | grep -P '://'
            network dnssd://HP%20LaserJet%201022n._pdl-datastream._tcp.local/
            network dnssd://TOSHIBA%20e-STUDIO2540C-07279076._printer._tcp.local/
            network socket://192.168.20.201
            network socket://192.168.20.203
            network socket://192.168.20.204
            network socket://192.168.20.205
            network socket://192.168.20.206
            network socket://192.168.20.207
            network socket://192.168.20.43


            or nmap



            nmap -sT <adress_or_address_range>


            and grep the service printer



            Example



            $ nmap -sT 192.168.20.43

            Starting Nmap 6.47 ( http://nmap.org ) at 2015-07-03 08:38 CEST
            Nmap scan report for 192.168.20.43
            Host is up (0.0017s latency).
            Not shown: 991 closed ports
            PORT STATE SERVICE
            21/tcp open ftp
            25/tcp open smtp
            80/tcp open http
            139/tcp open netbios-ssn
            445/tcp open microsoft-ds
            515/tcp open printer
            631/tcp open ipp
            8080/tcp open http-proxy
            9100/tcp open jetdirect






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 3 '15 at 6:42

























            answered Jul 3 '15 at 6:21









            A.B.

            67.8k12163252




            67.8k12163252












            • Thanks. In my case, lpoptions shows indeed a lot of info, but not the IP. The concerned field looks like device-uri=hp:/net/hp_LaserJet_2420?zc=HP2420ROOMXXX, so again the same as what I get from GUI tools. So I assume the IP isn't stored in my machine...
              – kebs
              Jul 7 '15 at 9:46










            • Tried nmap, does its job, but doesn't return the name/type of printer that is connected. I guess that's the best I can get.
              – kebs
              Jul 7 '15 at 9:48




















            • Thanks. In my case, lpoptions shows indeed a lot of info, but not the IP. The concerned field looks like device-uri=hp:/net/hp_LaserJet_2420?zc=HP2420ROOMXXX, so again the same as what I get from GUI tools. So I assume the IP isn't stored in my machine...
              – kebs
              Jul 7 '15 at 9:46










            • Tried nmap, does its job, but doesn't return the name/type of printer that is connected. I guess that's the best I can get.
              – kebs
              Jul 7 '15 at 9:48


















            Thanks. In my case, lpoptions shows indeed a lot of info, but not the IP. The concerned field looks like device-uri=hp:/net/hp_LaserJet_2420?zc=HP2420ROOMXXX, so again the same as what I get from GUI tools. So I assume the IP isn't stored in my machine...
            – kebs
            Jul 7 '15 at 9:46




            Thanks. In my case, lpoptions shows indeed a lot of info, but not the IP. The concerned field looks like device-uri=hp:/net/hp_LaserJet_2420?zc=HP2420ROOMXXX, so again the same as what I get from GUI tools. So I assume the IP isn't stored in my machine...
            – kebs
            Jul 7 '15 at 9:46












            Tried nmap, does its job, but doesn't return the name/type of printer that is connected. I guess that's the best I can get.
            – kebs
            Jul 7 '15 at 9:48






            Tried nmap, does its job, but doesn't return the name/type of printer that is connected. I guess that's the best I can get.
            – kebs
            Jul 7 '15 at 9:48












            up vote
            5
            down vote













            Look at the arp-scan command - you will probably have to install it:



            sudo apt-get install arp-scan



            http://manpages.ubuntu.com/manpages/hardy/man1/arp-scan.1.html



            And to give further detail:



            sudo arp-scan --interface=eth0 --localnet



            Where eth0 is your device (or wlan0). You can find your device with:



            ifconfig





            Or try installing nmap (sudo apt-get install nmap) and type nmap 192.168.1.0/24 substituting 192.168.1 with the first three parts of your ip address (find out using ip addr).






            share|improve this answer























            • Thanks, just tried. arp-scan works fast, but it only returns MAC adress (and shows manufacturer, deduced from MAC). I'm currently trying nmap.
              – kebs
              Jul 7 '15 at 9:32












            • For nmap, it doesn't return name/type of printer, thanks anyway.
              – kebs
              Jul 7 '15 at 9:51










            • +1 to this answer: @kebs, Running Lubuntu 18.04 LTS, I use the output from ip a to get the interface (in my case not eth0), and then the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified devices.
              – sudodus
              Dec 4 at 12:47










            • @kebs, I booted into a live drive made from the file lubuntu-14.04.1-desktop-i386.iso, and the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified device also in this case. There must be something strange with your operating system.
              – sudodus
              Dec 4 at 16:32















            up vote
            5
            down vote













            Look at the arp-scan command - you will probably have to install it:



            sudo apt-get install arp-scan



            http://manpages.ubuntu.com/manpages/hardy/man1/arp-scan.1.html



            And to give further detail:



            sudo arp-scan --interface=eth0 --localnet



            Where eth0 is your device (or wlan0). You can find your device with:



            ifconfig





            Or try installing nmap (sudo apt-get install nmap) and type nmap 192.168.1.0/24 substituting 192.168.1 with the first three parts of your ip address (find out using ip addr).






            share|improve this answer























            • Thanks, just tried. arp-scan works fast, but it only returns MAC adress (and shows manufacturer, deduced from MAC). I'm currently trying nmap.
              – kebs
              Jul 7 '15 at 9:32












            • For nmap, it doesn't return name/type of printer, thanks anyway.
              – kebs
              Jul 7 '15 at 9:51










            • +1 to this answer: @kebs, Running Lubuntu 18.04 LTS, I use the output from ip a to get the interface (in my case not eth0), and then the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified devices.
              – sudodus
              Dec 4 at 12:47










            • @kebs, I booted into a live drive made from the file lubuntu-14.04.1-desktop-i386.iso, and the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified device also in this case. There must be something strange with your operating system.
              – sudodus
              Dec 4 at 16:32













            up vote
            5
            down vote










            up vote
            5
            down vote









            Look at the arp-scan command - you will probably have to install it:



            sudo apt-get install arp-scan



            http://manpages.ubuntu.com/manpages/hardy/man1/arp-scan.1.html



            And to give further detail:



            sudo arp-scan --interface=eth0 --localnet



            Where eth0 is your device (or wlan0). You can find your device with:



            ifconfig





            Or try installing nmap (sudo apt-get install nmap) and type nmap 192.168.1.0/24 substituting 192.168.1 with the first three parts of your ip address (find out using ip addr).






            share|improve this answer














            Look at the arp-scan command - you will probably have to install it:



            sudo apt-get install arp-scan



            http://manpages.ubuntu.com/manpages/hardy/man1/arp-scan.1.html



            And to give further detail:



            sudo arp-scan --interface=eth0 --localnet



            Where eth0 is your device (or wlan0). You can find your device with:



            ifconfig





            Or try installing nmap (sudo apt-get install nmap) and type nmap 192.168.1.0/24 substituting 192.168.1 with the first three parts of your ip address (find out using ip addr).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 3 '15 at 6:21

























            answered Jul 3 '15 at 6:11









            RiddleMeThis

            865415




            865415












            • Thanks, just tried. arp-scan works fast, but it only returns MAC adress (and shows manufacturer, deduced from MAC). I'm currently trying nmap.
              – kebs
              Jul 7 '15 at 9:32












            • For nmap, it doesn't return name/type of printer, thanks anyway.
              – kebs
              Jul 7 '15 at 9:51










            • +1 to this answer: @kebs, Running Lubuntu 18.04 LTS, I use the output from ip a to get the interface (in my case not eth0), and then the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified devices.
              – sudodus
              Dec 4 at 12:47










            • @kebs, I booted into a live drive made from the file lubuntu-14.04.1-desktop-i386.iso, and the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified device also in this case. There must be something strange with your operating system.
              – sudodus
              Dec 4 at 16:32


















            • Thanks, just tried. arp-scan works fast, but it only returns MAC adress (and shows manufacturer, deduced from MAC). I'm currently trying nmap.
              – kebs
              Jul 7 '15 at 9:32












            • For nmap, it doesn't return name/type of printer, thanks anyway.
              – kebs
              Jul 7 '15 at 9:51










            • +1 to this answer: @kebs, Running Lubuntu 18.04 LTS, I use the output from ip a to get the interface (in my case not eth0), and then the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified devices.
              – sudodus
              Dec 4 at 12:47










            • @kebs, I booted into a live drive made from the file lubuntu-14.04.1-desktop-i386.iso, and the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified device also in this case. There must be something strange with your operating system.
              – sudodus
              Dec 4 at 16:32
















            Thanks, just tried. arp-scan works fast, but it only returns MAC adress (and shows manufacturer, deduced from MAC). I'm currently trying nmap.
            – kebs
            Jul 7 '15 at 9:32






            Thanks, just tried. arp-scan works fast, but it only returns MAC adress (and shows manufacturer, deduced from MAC). I'm currently trying nmap.
            – kebs
            Jul 7 '15 at 9:32














            For nmap, it doesn't return name/type of printer, thanks anyway.
            – kebs
            Jul 7 '15 at 9:51




            For nmap, it doesn't return name/type of printer, thanks anyway.
            – kebs
            Jul 7 '15 at 9:51












            +1 to this answer: @kebs, Running Lubuntu 18.04 LTS, I use the output from ip a to get the interface (in my case not eth0), and then the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified devices.
            – sudodus
            Dec 4 at 12:47




            +1 to this answer: @kebs, Running Lubuntu 18.04 LTS, I use the output from ip a to get the interface (in my case not eth0), and then the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified devices.
            – sudodus
            Dec 4 at 12:47












            @kebs, I booted into a live drive made from the file lubuntu-14.04.1-desktop-i386.iso, and the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified device also in this case. There must be something strange with your operating system.
            – sudodus
            Dec 4 at 16:32




            @kebs, I booted into a live drive made from the file lubuntu-14.04.1-desktop-i386.iso, and the arp-scan command line (of this answer) outputs the IP address, the MAC address and the name of the identified device also in this case. There must be something strange with your operating system.
            – sudodus
            Dec 4 at 16:32










            up vote
            2
            down vote













            lpstat -s


            Sometimes it doesn't have to be complicated.






            share|improve this answer





















            • Thanks, but... no (for me). It only shows how to reach the printer: protocol and URI, for example dnssd://HP%20ENVY%205XXXX. However, it clearly shows that the IP isn't stored and how reaching the device is done.
              – kebs
              Sep 11 at 9:24















            up vote
            2
            down vote













            lpstat -s


            Sometimes it doesn't have to be complicated.






            share|improve this answer





















            • Thanks, but... no (for me). It only shows how to reach the printer: protocol and URI, for example dnssd://HP%20ENVY%205XXXX. However, it clearly shows that the IP isn't stored and how reaching the device is done.
              – kebs
              Sep 11 at 9:24













            up vote
            2
            down vote










            up vote
            2
            down vote









            lpstat -s


            Sometimes it doesn't have to be complicated.






            share|improve this answer












            lpstat -s


            Sometimes it doesn't have to be complicated.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 11 at 8:26









            Þór Sigurðsson

            212




            212












            • Thanks, but... no (for me). It only shows how to reach the printer: protocol and URI, for example dnssd://HP%20ENVY%205XXXX. However, it clearly shows that the IP isn't stored and how reaching the device is done.
              – kebs
              Sep 11 at 9:24


















            • Thanks, but... no (for me). It only shows how to reach the printer: protocol and URI, for example dnssd://HP%20ENVY%205XXXX. However, it clearly shows that the IP isn't stored and how reaching the device is done.
              – kebs
              Sep 11 at 9:24
















            Thanks, but... no (for me). It only shows how to reach the printer: protocol and URI, for example dnssd://HP%20ENVY%205XXXX. However, it clearly shows that the IP isn't stored and how reaching the device is done.
            – kebs
            Sep 11 at 9:24




            Thanks, but... no (for me). It only shows how to reach the printer: protocol and URI, for example dnssd://HP%20ENVY%205XXXX. However, it clearly shows that the IP isn't stored and how reaching the device is done.
            – kebs
            Sep 11 at 9:24










            up vote
            0
            down vote













            enter image description hereI am also using ubuntu14.04. If you want to see the IP of the printer which was installed, you'd better go to system settings and choose Printers. Then please choose the printer and see its properties. In the setting tab inside the properties, there is Device URI. Click on it and see the IP.






            share|improve this answer

























              up vote
              0
              down vote













              enter image description hereI am also using ubuntu14.04. If you want to see the IP of the printer which was installed, you'd better go to system settings and choose Printers. Then please choose the printer and see its properties. In the setting tab inside the properties, there is Device URI. Click on it and see the IP.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                enter image description hereI am also using ubuntu14.04. If you want to see the IP of the printer which was installed, you'd better go to system settings and choose Printers. Then please choose the printer and see its properties. In the setting tab inside the properties, there is Device URI. Click on it and see the IP.






                share|improve this answer












                enter image description hereI am also using ubuntu14.04. If you want to see the IP of the printer which was installed, you'd better go to system settings and choose Printers. Then please choose the printer and see its properties. In the setting tab inside the properties, there is Device URI. Click on it and see the IP.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 4 at 12:35









                MAHSA

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f643584%2fhow-do-i-get-ip-of-installed-network-printer%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

                    Quarter-circle Tiles

                    build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

                    Mont Emei