Identify Computer

C

cliffeh

I have an Intranet application that I'm deploying to our Shop Floor. What I
would like is to have a front page that receives the request, identifies the
computer that it's coming from, and then redirects that PC to the
appropriate page on the site (depending on what production line it's on,
what web apps are required by that particular PC, etc). Once I could
identify the Computer, it would be pretty easy to look up the page it should
go to, for instance in the web.config file. But it's a matter of getting a
positive identification on the computer making the request.

Any suggestions on this? It's all in-house, so I can make whatever changes I
need to to the clients. Right now I'm basing some stuff on IP Address (which
is what I get from Request.UserHostName), but with DHCP, that's not going to
work.

Thanks,
Cliffe Hodgkinson
Nichirin Inc.
 
G

Guest

Something like this may work for you
string shopComputer =
System.Net.Dns.GetHostByAddress(System.Web.HttpContext.Current.Request.UserHostAddress).HostName.ToString();

I don't know how you manage the logins on the shop floor, but if you have a
specific user account that logs onto each machine, you could get the logged
on user by by using something like
System.Web.HttpContext.Current.User.Identity.Name and then route them to the
correct page based on that (anonymous access must be disabled).

Hope this helped or at least gave you some ideas.
 
C

cliffeh

Thanks for the tips. Unfortunately, we're on an NT network, so we don't have
any DNS resolution of our internal machines, so I don't think the first
suggestion will work.
The second one, though, might just work.
Cliffe
 
P

Patrick Olurotimi Ige

Cliffe the second one will work!
Only u have to use Windows Auth.
U could use IsInRole Method to route ur users to the right page.
Hope this helps.
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top