Click here to Skip to main content
13,458,960 members
Click here to Skip to main content
Add your own
alternative version


22 bookmarked
Posted 4 May 2004

Socket stream redirection using .NET remoting

, 4 May 2004
Rate this:
Please Sign up or sign in to vote.
Redirecting socket stream over HTTP channel with .NET remoting.

Sample Image - TCP2HTTP.jpg


Since this is my first uploaded project, I will be quite brief.

This simple program uses .NET remoting built in HTTP channel to establish a two-way communication channel between client and server endpoints which is adequate for firewalled and proxy environments.

Basically, at the server end, TCP2HTTPActivator registers TCP2HTTPServer which is a MarshalByRefObject class that exposes a few methods for sending and receiving socket data. When a client connects to the server, it requests a connection to a particular TCP port. Server object opens a connection to the local port and serves as a proxy between client and server sides.

At the client end, TCP2HTTPClient starts listening at a predetermined port which is used for redirecting the TCP socket data transfer over HTTP channel. When an application connects locally to a defined port, TCP2HTTPClient feeds the data to the server and backwards via sendTCPStream and receiveTCPStream methods.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Croatia Croatia
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionHas anyone figured out how to get this to work? Pin
skirby5521-Jun-07 6:32
memberskirby5521-Jun-07 6:32 
QuestionHow to run the demo? Pin
langdeng12-Oct-05 14:25
memberlangdeng12-Oct-05 14:25 
Generalseperation Pin
seer_tenedos224-Feb-05 15:11
memberseer_tenedos224-Feb-05 15:11 
GeneralRe: seperation Pin
Navise26-Feb-05 11:52
memberNavise26-Feb-05 11:52 
GeneralMore details Pin
Michael A. Barnhart18-May-04 0:15
memberMichael A. Barnhart18-May-04 0:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02-2016 | 2.8.180323.1 | Last Updated 5 May 2004
Article Copyright 2004 by Navise
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid