Click to See Complete Forum and Search --> : How Can I access a remote computer's parallel port using ASP.NET?


mcaaltuntas
February 24th, 2005, 04:07 AM
How Can I control a remote PC's parallel port using ASP.NET? For example I want to control the "step motor" on my home computer's parallel port from internet. I will connect to my PC and send data to my PC's parallel port. How can I do this with ASP.NET? Please help Me!!

mmetzger
February 24th, 2005, 10:51 AM
You'd have to use code to access the parallel port from .NET, then reference that code within a page to provide the frontend for it.

It's not really any different than accessing ports within a standard winforms app except that you need to think carefully about when you startup your routines to poll / control the port (my guess would be in Application_Start) and authenticate access to it in IIS.

If you're looking for port control info, it's not pretty in 1.x, you have to wrap some unsafe code to do it. If you search for parallel port and csharp or .net, you should find something.

mcaaltuntas
February 24th, 2005, 03:29 PM
parallel port control is OK. But problem is that I must control My PC's parallel port not the server which ASP.NET installed. How ASP.NET code access my parallel port?As I know ASP.NET code is running on Server and it access the server's parallel port But what about my PC's port? Do you have any idea?

mmetzger
February 24th, 2005, 04:28 PM
You can't, at least not the way I'm understanding your request. You'd have to setup some sort of software to allow the server to communicate with the pc (ie, control it.) You'd then make the ASP.NET server send the commands to the pc. You're going to run into issues with firewalls, NAT'd IP addresses, etc.

mcaaltuntas
February 25th, 2005, 03:01 AM
ok. I understand.Do you mean a program like Remote Access Control ? And Do you have any idea how Remote Access Control do this on the internet?