473,326 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Client - server communication

Hi!

Does anyone know if it is possible for a client server communication
easy in .NET with these requirements:

The client always initiates the communication
The server only answers (responds)
Uses port 80, skips firewall
The server computer doesn't have a IIS or web server

I have thought about remoting but it feels a little bit over the top, we
are only sending information to the client .

/Christian
Nov 16 '05 #1
4 9302
Remoting is a good answer. Use the Http Channel. Very easy to code,
only about 5 lines on client and server.

Another option is to use System.IO and setup some UDP or TCP sockets.
This is also quite easy.

If you need some code examples mail me.

Christian Westerlund wrote:
Hi!

Does anyone know if it is possible for a client server communication
easy in .NET with these requirements:

The client always initiates the communication
The server only answers (responds)
Uses port 80, skips firewall
The server computer doesn't have a IIS or web server

I have thought about remoting but it feels a little bit over the top, we
are only sending information to the client .

/Christian

Nov 16 '05 #2
Elp

"Arran Pearce" <arranpearce@NO_SPAMcellhire.com> wrote in message
news:uv*************@tk2msftngp13.phx.gbl...
Remoting is a good answer. Use the Http Channel. Very easy to code,
only about 5 lines on client and server.

Another option is to use System.IO and setup some UDP or TCP sockets.
This is also quite easy.


And another option would be to use a Web Service with WSE 2.0 (now in
release version) which allows to host a Web Service within a Windows
executable without the need of a Web Server.Here is a link to a good article
that explains that, unfortunately in French:
http://www.c2i.fr/code.aspx?IDCode=576
You can find information in English here:
http://msdn.microsoft.com/webservices/building/wse/ (the feature i'm talking
about is Web Service Messaging)

I guess however that the Remoting way with HTTP channel would be much easier
and more powerfull although not interroperable (but i'm not sure if WSE 2 is
that much interroperable either)
Nov 16 '05 #3
Hi Elp!

Thanks for the tip, I'll look into that!

/Christian

Elp wrote:
"Arran Pearce" <arranpearce@NO_SPAMcellhire.com> wrote in message
news:uv*************@tk2msftngp13.phx.gbl...
Remoting is a good answer. Use the Http Channel. Very easy to code,
only about 5 lines on client and server.

Another option is to use System.IO and setup some UDP or TCP sockets.
This is also quite easy.

And another option would be to use a Web Service with WSE 2.0 (now in
release version) which allows to host a Web Service within a Windows
executable without the need of a Web Server.Here is a link to a good article
that explains that, unfortunately in French:
http://www.c2i.fr/code.aspx?IDCode=576
You can find information in English here:
http://msdn.microsoft.com/webservices/building/wse/ (the feature i'm talking
about is Web Service Messaging)

I guess however that the Remoting way with HTTP channel would be much easier
and more powerfull although not interroperable (but i'm not sure if WSE 2 is
that much interroperable either)

Nov 16 '05 #4
On the server is call:
HttpChannel chan = new HttpChannel(4544);
ChannelServices.RegisterChannel(chan);

Type myObjectType = typeof(myObject);

RemotingConfiguration.RegisterWellKnownServiceType (myObjectType,"EndPointName",
WellKnownObjectMode.SingleCall);

and on the Client Call:

HttpChannel chan = new HttpChannel(0);
ChannelServices.RegisterChannel(chan);
myObjectInterface r =
(myObjectInterface)RemotingServices.Connect(typeof (myObjectInterface),"http://localhost:4544/EndPointName");
My Client app has a Class which is the interface of the object i am
sharing and the server app has the full object class.
I normally have the client using a interface rather than the full class
so if i change the internals of the class then i dont need to
redistribute the client.
Beeeeeeeeeeeeves wrote:
Wouldn't mind seeing some of your examples of using remoting to do simple communication between client and server if you have any.

Also would be interested in seeing ones of a service communicating with a front end app on the same machine.

mail me to benjtaylor at hotpop dot com if you have any good examples

"Arran Pearce" wrote:

Remoting is a good answer. Use the Http Channel. Very easy to code,
only about 5 lines on client and server.

Another option is to use System.IO and setup some UDP or TCP sockets.
This is also quite easy.

If you need some code examples mail me.

Christian Westerlund wrote:

Hi!

Does anyone know if it is possible for a client server communication
easy in .NET with these requirements:

The client always initiates the communication
The server only answers (responds)
Uses port 80, skips firewall
The server computer doesn't have a IIS or web server

I have thought about remoting but it feels a little bit over the top, we
are only sending information to the client .

/Christian

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Offer | last post by:
Hi, I create a TCP connection between client & server and I need to send vectors via ObjectInputStreams back and forth (the client initiates the protocol). The connection is established...
1
by: JB | last post by:
All, I am reaching out looking for the best way to approach a problem given by my company. We are embarking on our first .NET application, and quite frankly we are not as educated with the...
1
by: Chris LaJoie | last post by:
Hi, I'm tyring to impliment a client-server application which communicates through ASP.NET. I currently have this same sort of system working with a VB6 program and standard 'old' ASP. Our...
1
by: Alhazred | last post by:
I'm writing a client-server software which should emulate an email service on a local machine. I'm now at the beginning and I'm trying to let communicate the client and the server process, but have...
6
by: Matt Nunnally | last post by:
I'm trying to build a client for a third party application that resides on the server and accepts SSL communication. i'm using this code: tcpClient.Connect(m_IPAddress, m_Port) ...
1
by: stmfc | last post by:
in a server client communication which uses Socket and ServerSocket classes of java, think that client is sending some information byte by byte, and server is reading in the same way (byte by byte),...
5
by: madankarmukta | last post by:
HI, Can anybody tell me the link from where i can find how trhe interaction betwenn the server and client takes place..including the point 1)Listeing port for both i.e. server is listening on...
5
by: AeonOfTime | last post by:
Let's assume a web application (in this case a browser-based game) with a custom HTTP server built on PHP, and a client also built on PHP. The client uses the server to access and change data. Even...
0
by: bushramemon | last post by:
hello,,now i m working on multi-threaded client server socket program in which there is one server and multiple clients.........these both are just giving acknowledge to each other that server...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.