Home All Groups Group Topic Archive Search About
Author
29 Mar 2006 8:08 AM
Shawnmb
Would it be hard to write an application which could send a basic html
page to, let's say a browser, that connects to the application on a
specified port? I've never even pondered doing this before, any
suggestions on how to best achieve this? Good tutorial suggestions
maybe? ^_^

Thanks.

Author
29 Mar 2006 9:17 AM
Cor Ligthert [MVP]
Shawnbm,

Yes this will probably be hard. And if you succeed you will probably see the
next security patch, which prevents that.

Just my idea

Cor

Show quoteHide quote
"Shawnmb" <Shaw***@gmail.com> schreef in bericht
news:1143619690.244458.302530@i40g2000cwc.googlegroups.com...
> Would it be hard to write an application which could send a basic html
> page to, let's say a browser, that connects to the application on a
> specified port? I've never even pondered doing this before, any
> suggestions on how to best achieve this? Good tutorial suggestions
> maybe? ^_^
>
> Thanks.
>
Author
29 Mar 2006 10:29 AM
Larry Lard
Shawnmb wrote:
> Would it be hard to write an application which could send a basic html
> page to, let's say a browser, that connects to the application on a
> specified port? I've never even pondered doing this before, any
> suggestions on how to best achieve this? Good tutorial suggestions
> maybe? ^_^

Essentially you are talking about an HTTP server, or webserver if you
prefer. There's nothing stopping you writing such a thing in .NET,
although the easiest approach would probably be to write the app using
ASP.NET on IIS, then configure IIS to present your app on the
particular port you want.

If you want to avoid depending on IIS, you would need to do your own
Socket work to listen for incoming connections and maintain any session
state necessary.

Some resources you might find helpful:

These threads from the C# group:
<http://tinyurl.com/nrnet>
<http://tinyurl.com/zrm5c>

"First .NET Web Server" at <http://www.sampullara.com/>

The Cassini sample web server at
<http://forums.asp.net/67/ShowForum.aspx>


Bear in mind that getting something like this *working* would probably
be quite fun; getting it working *right* and *well* might be a little
more work :)

--
Larry Lard
Replies to group please
Author
29 Mar 2006 10:38 AM
Larry Lard
Larry Lard wrote:
> Shawnmb wrote:
> > Would it be hard to write an application which could send a basic html
> > page to, let's say a browser, that connects to the application on a
> > specified port? I've never even pondered doing this before, any
> > suggestions on how to best achieve this? Good tutorial suggestions
> > maybe? ^_^

> Some resources you might find helpful:

Some more:

Newsgroup posts:
<http://tinyurl.com/ktg3g>
<http://tinyurl.com/fqnz2>

--
Larry Lard
Replies to group please