Is it possible to find a printer's physical location in a building by its IP adress?

13

2

I am in a school with probably 200+ computers and I did an IP scan among a certain range and found three or four printers. I was wondering if it would be possible to find these printers in the school, either by using other computers around them and checking their IP address, and narrowing it down that way, or if there was a way to possible map the network using something like NMap, except I don't have the necessary privileges to install a portion of programs like that.

I was just curious as to whether this could be done, any help would be appreciated.

cutrightjm

Posted 2011-08-24T12:57:26.113

Reputation: 3 966

1What is the purpose behind this? :) – Tamara Wijsman – 2011-08-24T16:28:54.160

1Are you an admin trying to find printers installed without authorisation, or just someone who's curious (perhaps a student)? If the latter, tread carefully - running IP scans can be (and has been) construed as hacking, with suspensions and prosecution the consequence. – Bevan – 2011-08-24T19:08:58.057

1From OP's other question: am at a school and am currently enrolled in the computer science class...so, be careful how you tread. If one of my students tried this I'd be surprised (and impressed) but would quietly dissuade them. A school production enviroment is NOT the place to be mucking around. – tombull89 – 2011-08-24T19:16:19.977

Also, depending on the naming scheme of the school, you may be able to find out the name of the printer, which could include the name of the room (for example, HP2600-STAFFRM-1821). – tombull89 – 2011-08-24T19:17:54.420

Answers

2

The answer is no, not really. An IP address alone isn't enough information to physically locate a device in a large campus.

While most network administrators are fairly organized, and assign IP addresses in ways that make sense, you can't count on it enough to be certain you can locate a device. (You can guess a device's location by things like its name or the fact that its IP is in the same range as, say, the computers in the art building, but that doesn't mean the printer isn't actually located in the science wing.)

And mapping software cannot give you an exact physical map of a network, either, only an approximate network layout.

If you need to know where a device is, the IP and name and number of hops are all very good clues, but none of them can tell you for certain exactly where the device is physically located. All the suggestions in this thread, though, give you great social engineering methods for finding a device without contacting the network administrator!

goblinbox

Posted 2011-08-24T12:57:26.113

Reputation: 2 414

20

I can't believe no one suggested this yet but check to see if the printer has a DNS name

ping -a 192.168.0.200

It may have a good DNS name like "ColorRoom203"

Scott Chamberlain

Posted 2011-08-24T12:57:26.113

Reputation: 28 923

4Found lots of printers on both my high school and college networks by finding the printer names. Once walked into the middle of a teachers' meeting to get a printout from the only printer on at 7pm. Fun! – NickAldwin – 2011-08-24T20:33:48.687

16

Depends on the topology of the network.

My old school used a single subnet, and whilst they had static ips, they used 10.x.y.z where x was building, y was room, and z was machine/device.

If they do something similar, you may be in luck. If they however use DHCP, I don't think you stand a chance.

If you fancy some detective work, you can try to ping devices and test the latency from different rooms to narrow it down, but again, it depends on the network layout and to be honest, I doubt this will work.

William Hilsum

Posted 2011-08-24T12:57:26.113

Reputation: 111 572

1Exactly what I was gonna say. The whole point of IP addresses is location transparency, and unless intended, they don't reveal any physical location at all. – slhck – 2011-08-24T13:05:08.767

18Send a print job and rush around, listening! Or send a rude poem or pic to a printer and wait for the Head to come to each classroom to demand (for example) "Who sent THIS to the printer in room G4?" – Linker3000 – 2011-08-24T13:06:41.930

@linker3000 nice! – William Hilsum – 2011-08-24T13:13:00.430

2I wanted to post (this picture)[http://www.edwardnickell.co.uk/wp-content/uploads/2011/05/image.png] as it sort of reminded me of that, but, based on the junk upvote complaints, I thought I better not include it! – William Hilsum – 2011-08-24T13:16:59.457

8Try printing a document "Printer service required. Call 123-456-7890 for assistance." then when they call ask what room the printer is in and "schedule" a service call. – Chris Nava – 2011-08-24T14:45:01.800

There must have been a hell of a lot of broadcast noise on that network. – paradroid – 2012-04-11T14:34:05.843

13

Easiest solution. Print out a page (and use a big font) that says:

Hi there!

I'm a student at Institution, and I'm trying to find this printer. Would you mind calling me at 515-555-1234 (or emailing me at ekaj@university.email.address.com) and letting me know where it is?

Thanks!

Your Full Name

Architecture 2003

Neil G

Posted 2011-08-24T12:57:26.113

Reputation: 402

3That's fun! I always overlook non-technical answers, which are often easier. – Andrew Neely – 2011-08-24T20:06:51.113

Ha... Ha... Ha... – Apple II – 2011-09-01T08:41:45.137

5

The easiest to find out printer location from IP-address is to ask the systems administrator who set them up, she'll have records that show location.

You say you don't have privileges to install software, this implies you don't have privileges to send SNMP queries to smart ethernet switches about port-assocations for MAC addresses associated with IP-addresses (in your local ARP table - see arp -a). That might be useful if you had a wiring map.

You could walk through the entire school and get each printer to display or print it's configuration page - printers with embedded NICs will normally include their IP-address in such pages. If printers are attached using HP JetDirect boxes, holding the button down on those makes them print that info. For other makes of "print-server" box (old skool meaning) you might not be able to do this directly.

RedGrittyBrick

Posted 2011-08-24T12:57:26.113

Reputation: 70 632

1Social Engineering is the best way to get information that you should or should not have. – Lightly Salted – 2011-08-24T17:21:01.323

3

You should definitely try a trace route, it's called tracert in Windows for IPv4.

enter image description here

Find each router/hop along the path and you'll eventually find the printer!

You're getting closer when a trace route results in less hops and latency...

Tamara Wijsman

Posted 2011-08-24T12:57:26.113

Reputation: 54 163

It's unlikely that you'll have more than one router in a school. Even my university had one router that all academic/residential related connections went though. – user606723 – 2011-08-24T18:35:21.947

@user606723: Erm... Sounds like they like a single point of failure. :) – Tamara Wijsman – 2011-08-24T18:41:22.183

Maybe.. Now that I think about it, there are better ways of doing it. Now, with 200+ computers? not likely. – user606723 – 2011-08-24T18:56:53.770

I think most schools would have more than one router in between you and anything of interest. You must have gone to a small school. :) Heck, the route between my laptop and my workstation is 7 hops in the small (< 30 people) office where I work. I could easily go more hops than that on the University where I was a sysadmin many moons ago. Of course, finding which router serves the printer's network leaves you with the question of "where's the router," but this is still probably your best bet for getting some idea. – wrosecrans – 2011-08-25T02:02:16.813

@wrosecrans: Yeah, and that question is a matter of following cables or using a wireless tool to figure out how close you are to the wireless printer... – Tamara Wijsman – 2011-08-25T02:04:00.337

2

This really depends on the hardware that you are using. For starters, some printers are SNMP capable and allow you to set the sysLocation value. This is good as long as no one moves a printer on you. You could also embed the location as a comment in the switch port config. This is good as long as you can determine switch port from IP/MAC and the device is not moved. Labelling both ends of all cables also helps. As a purely non-technical solution, you could name the print queues after their location, ie BLDG_FLR_RM_Name.

Xenoactive

Posted 2011-08-24T12:57:26.113

Reputation: 992

1

From a university's/telco's point of view, they typically have ways to figuring out which port of which switch a device is connected to.

Using this with a record of switch locations, they can find the physical location of any device on their network.

I had a friend who used to work for the telco, and was able to figure out where his friends were located by locating the Access Point they were wirelessly connected to.

I also asked him to look up the dorm room number of a certain IP address I was "interested" in. I wrote a message on the guys white board =).

user606723

Posted 2011-08-24T12:57:26.113

Reputation: 1 217