How to fetch IP Address of a user who gives print job to a printer using libcups API

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I am using CUPS protocol and created Ubuntu machine as a print server and added printers on to my ubuntu server machine and shared those printers in the company.
Now these printers are visible to every employee of our company and when they print the page to these shared printers,i can fetch the print job data(such as title of the page,size of the page,username who has given print,creation time of the print job,printer Name) using cupsgetjobs() API as mentioned in libcups library,but i am unable to fetch the IP address from whom print job was given.



Kindly help me in getting the IP address of the user who has given the print job to the cups server.







share|improve this question
























    up vote
    1
    down vote

    favorite












    I am using CUPS protocol and created Ubuntu machine as a print server and added printers on to my ubuntu server machine and shared those printers in the company.
    Now these printers are visible to every employee of our company and when they print the page to these shared printers,i can fetch the print job data(such as title of the page,size of the page,username who has given print,creation time of the print job,printer Name) using cupsgetjobs() API as mentioned in libcups library,but i am unable to fetch the IP address from whom print job was given.



    Kindly help me in getting the IP address of the user who has given the print job to the cups server.







    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am using CUPS protocol and created Ubuntu machine as a print server and added printers on to my ubuntu server machine and shared those printers in the company.
      Now these printers are visible to every employee of our company and when they print the page to these shared printers,i can fetch the print job data(such as title of the page,size of the page,username who has given print,creation time of the print job,printer Name) using cupsgetjobs() API as mentioned in libcups library,but i am unable to fetch the IP address from whom print job was given.



      Kindly help me in getting the IP address of the user who has given the print job to the cups server.







      share|improve this question












      I am using CUPS protocol and created Ubuntu machine as a print server and added printers on to my ubuntu server machine and shared those printers in the company.
      Now these printers are visible to every employee of our company and when they print the page to these shared printers,i can fetch the print job data(such as title of the page,size of the page,username who has given print,creation time of the print job,printer Name) using cupsgetjobs() API as mentioned in libcups library,but i am unable to fetch the IP address from whom print job was given.



      Kindly help me in getting the IP address of the user who has given the print job to the cups server.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 24 at 6:27









      param

      113




      113

























          active

          oldest

          votes











          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1027680%2fhow-to-fetch-ip-address-of-a-user-who-gives-print-job-to-a-printer-using-libcups%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027680%2fhow-to-fetch-ip-address-of-a-user-who-gives-print-job-to-a-printer-using-libcups%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

          `kcmshell` modules relation with `/usr/share/applications`

          How to enroll fingerprints to Ubuntu 17.10 with VFS491