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


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.
14.04 printing smb cups-lpd
add a comment |Â
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.
14.04 printing smb cups-lpd
add a comment |Â
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.
14.04 printing smb cups-lpd
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.
14.04 printing smb cups-lpd
asked Apr 24 at 6:27
param
113
113
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password