473,473 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

.NET Remoting

35 New Member
Hi I am stuck in a problem. I have developed an application, which has two buttons start and stop. All I want to do is to be able to push these Start and Stop buttons from a remote location (within the network). I know there is something available in .net library called .Net Remoting, but I dont know how to use it. Can anyone help me how can i do this. Thanks in advance.

Pulkit Zery
Jun 26 '07 #1
4 827
TRScheel
638 Recognized Expert Contributor
Hi I am stuck in a problem. I have developed an application, which has two buttons start and stop. All I want to do is to be able to push these Start and Stop buttons from a remote location (within the network). I know there is something available in .net library called .Net Remoting, but I dont know how to use it. Can anyone help me how can i do this. Thanks in advance.

Pulkit Zery

From what I understand of System.Runtime.Remoting, it isn't what you want to use for this particular application. I would think you would need the application to accept incoming messages on a port and then do something based off the message. In this case, press start/stop. System.Net.Sockets might be more what you are looking for, although I am sure you can use the other classes / namespaces within System.Net to do the same thing.
Jun 26 '07 #2
PulkitZery
35 New Member
I would think you would need the application to accept incoming messages on a port and then do something based off the message. In this case, press start/stop. System.Net.Sockets might be more what you are looking for, although I am sure you can use the other classes / namespaces within System.Net to do the same thing.
Thanks for your reply, what you suggested is exactly what i want to do. I have these following questions:
How do you open a port and send messages?
Do I need to run the main application as service or something?
How do the client and the main application will communicate?

If you can give me some code examples that would be excellent. Thanks in advance for your help.

Pulkit Zery
Jun 26 '07 #3
TRScheel
638 Recognized Expert Contributor
Thanks for your reply, what you suggested is exactly what i want to do. I have these following questions:
How do you open a port and send messages?
Do I need to run the main application as service or something?
How do the client and the main application will communicate?

If you can give me some code examples that would be excellent. Thanks in advance for your help.

Pulkit Zery
If I get some free time later today I can throw some sample code down for you, but I can describe the process fairly quickly.

What you will do is have a program that actively listens for information on a port. Once it recieves information from that port, it deciphers it and attempts to make a decision about what to do with it. The program does not need to run as a service, but it will need to be allowed through the firewall. Communication is done over TCP or UDP, although you will probably use TCP.


Also, here is the MSDN information about it, it should hopefully describe the process. I will check back on this thread in about an hour and a half or two, if you still have questions.

MDSN - TCPClient

MSDN - TCPListener
Jun 26 '07 #4
TRScheel
638 Recognized Expert Contributor
Also, know that this is not the ONLY way you can go about it. I just prefer Sockets. I am sure you can do it with HTTPListener or other classes.
Jun 26 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
4
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
0
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a...
8
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
2
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton /...
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.