We can transmit the remoting object by either TCPChannel or HTTPChannel.
Here I have illustrated with httpchannel. System.Runtime.Remoting.Channels.http is the Name space to be used here.
Here is a sample for remoting using HttpChannel
public shared sub Main()
dim channel as HttpChannel = new HttpChannel()
dim t as Type=Type.GetType("Hi,Hello")
dim url as string ="tcp://localhost:portnumber"
dim obj1 as object=Activator.CreateInstance(t)
dim str as string=Console.Readline()
HttpChannel uses SOAPformatter to serialize the message to XML format.
However as a study the highest performance can gain by using the TCP channel and binary serialization with a Windows Service host than a remoting with http. Because in the windows service it transmits with binary data over raw TCP sockets.