473,394 Members | 1,852 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,394 software developers and data experts.

port 80

Hi all,

How can I have my application running on port 80 while ISS and other
applications also run through port 80?
for remoting (without hosting it in IIS) and or simply using sockets.
regards,
Alexandre Brisebois

Jun 26 '06 #1
9 2963
Hi ,

You cannot, only one app can be listening in a port.

Why not use another port?
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Alexandre Brisebois" <al*****************@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi all,

How can I have my application running on port 80 while ISS and other
applications also run through port 80?
for remoting (without hosting it in IIS) and or simply using sockets.
regards,
Alexandre Brisebois

Jun 26 '06 #2
Alexandre,

You can't. Only one app at a time can bind to a socket. If port 80 is
already taken by IIS, then you don't have much of a choice, you have to pick
a different socket.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alexandre Brisebois" <al*****************@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi all,

How can I have my application running on port 80 while ISS and other
applications also run through port 80?
for remoting (without hosting it in IIS) and or simply using sockets.
regards,
Alexandre Brisebois

Jun 26 '06 #3
Alexandre,
That's a tricky question, because if you run a remoting app hosted in IIS it
isn't a problem at all - it acts (and actually is) just like any other IIS
application.

However, if you have a custom app that is attempting to talk on port 80 of
the same IPAddress that IIS is listening on, then yes, it will fail.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alexandre Brisebois" wrote:
Hi all,

How can I have my application running on port 80 while ISS and other
applications also run through port 80?
for remoting (without hosting it in IIS) and or simply using sockets.
regards,
Alexandre Brisebois

Jun 26 '06 #4
Use a different IP address then what IIS is listening on (if IIS is
listening on all IPs, then change that).

--
William Stacey [MVP]

"Alexandre Brisebois" <al*****************@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
| Hi all,
|
| How can I have my application running on port 80 while ISS and other
| applications also run through port 80?
| for remoting (without hosting it in IIS) and or simply using sockets.
|
|
| regards,
| Alexandre Brisebois
|
Jun 26 '06 #5

"Alexandre Brisebois"

How can I have my application running on
port 80 while ISS and other applications also
run through port 80?
for remoting (without hosting it in IIS) and or
simply using sockets.


With Vista's IIS7 (in versions Home Premium
and up) and with Vista's Http.sys 2.0 (in all
versions) this is very easy to do! Just use the
System.Net.HttpListener class!

Now some Vista Beta testers should test all
the above and let us know if Microsoft did fix
this IIS 5.1 and IIS6 bug in IIS7 and Http.sys
2.0 (Home versions are out too) before the
beta tests are over with in Vista!

Http.sys 2.0 in Vista is like a full web sever
in itself - where as Http.sys 1.0 (Windows
XP SP2 and Windows 2003) is more like a
mini web server!

Not sure - but does the new .NET 3.0 objects
install http.sys 2.0 on Windows XP? Testers?

But even right now, with just Windows XP SP2
Home edition (and higher) and with .NET 2.0 a
user can access many different Windows
processes using the same http.sys 1.0 port!
But not with non http.sys aware programs like
the web servers IIS5.1 or Apache!

Say even Windows PowerShell (the new .Net
command line shell) can access Http.sys
(even on Windows XP SP2 Home Edition):

PS C:\Test1> get-wmiobject win32_operatingsystem |
select-object Caption, CSDVersion

Caption CSDVersion
------- ----------
Microsoft Windows XP Home Edition Service Pack 2

PS C:\Test1> [System.Net.HttpListener]::IsSupported
True

PS C:\> $listener = new-object System.Net.HttpListener
PS C:\> $listener.GetType()

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False HttpListener
System.Object

So if you are using Windows for modern
HTTP / HTTPS usage, then learn how to
use the Windows Http.sys object!


Jun 27 '06 #6
Flowering,
The poor bloke is just trying to figure out how to run a remoting app
outside of IIS and whether he can still use Port 80!
Too many flowering weeds methinks.
:-)
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Flowering Weeds" wrote:

"Alexandre Brisebois"

How can I have my application running on
port 80 while ISS and other applications also
run through port 80?
for remoting (without hosting it in IIS) and or
simply using sockets.


With Vista's IIS7 (in versions Home Premium
and up) and with Vista's Http.sys 2.0 (in all
versions) this is very easy to do! Just use the
System.Net.HttpListener class!

Now some Vista Beta testers should test all
the above and let us know if Microsoft did fix
this IIS 5.1 and IIS6 bug in IIS7 and Http.sys
2.0 (Home versions are out too) before the
beta tests are over with in Vista!

Http.sys 2.0 in Vista is like a full web sever
in itself - where as Http.sys 1.0 (Windows
XP SP2 and Windows 2003) is more like a
mini web server!

Not sure - but does the new .NET 3.0 objects
install http.sys 2.0 on Windows XP? Testers?

But even right now, with just Windows XP SP2
Home edition (and higher) and with .NET 2.0 a
user can access many different Windows
processes using the same http.sys 1.0 port!
But not with non http.sys aware programs like
the web servers IIS5.1 or Apache!

Say even Windows PowerShell (the new .Net
command line shell) can access Http.sys
(even on Windows XP SP2 Home Edition):

PS C:\Test1> get-wmiobject win32_operatingsystem |
select-object Caption, CSDVersion

Caption CSDVersion
------- ----------
Microsoft Windows XP Home Edition Service Pack 2

PS C:\Test1> [System.Net.HttpListener]::IsSupported
True

PS C:\> $listener = new-object System.Net.HttpListener
PS C:\> $listener.GetType()

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False HttpListener
System.Object

So if you are using Windows for modern
HTTP / HTTPS usage, then learn how to
use the Windows Http.sys object!


Jun 27 '06 #7

"Peter Bromberg [C# MVP]"
The poor bloke is just trying to figure
out how to run a remoting app outside
of IIS and whether he can still use Port 80!


And now he has a lead on how to maybe
do it via Http.sys (and with or without IIS7)
too!

The days of "only" one process on one
port for Windows users are gone! Don't
live in the past programmers! Plant a new
flower! :)

Jun 27 '06 #8
I greatly apreciate all your inputs on this question of mine,
I have read a lot, and always thought it was impossible, but it is nice
to see people thinking outside the normal closed box of the past, I
will have a look at Http.sys,

if you have any good resouces I would greatly apreciate it.

best regards,
Alexandre Brisebois

Flowering Weeds wrote:
"Peter Bromberg [C# MVP]"
The poor bloke is just trying to figure
out how to run a remoting app outside
of IIS and whether he can still use Port 80!

And now he has a lead on how to maybe
do it via Http.sys (and with or without IIS7)
too!

The days of "only" one process on one
port for Windows users are gone! Don't
live in the past programmers! Plant a new
flower! :)
Jul 3 '06 #9

"Alexandre Brisebois"
I will have a look at Http.sys,
if you have any good resouces
For tons of links:

Windows Live Search
http://www.live.com/?q=http.sys+HTTP

And to "talk" to the programmers
who wrote http.sys:

Windows Network Development platforms,
technologies and APIs such as Winsock,
WSK, WinINet, Http.sys, WinHttp, QoS
and System.Net

Windows Network Development
http://blogs.msdn.com/wndp/

..NET Framework Networking and Communication
http://forums.microsoft.com/msdn/sho...id=40&siteid=1

Enjoy HTTP / HTTPS usage
with many processes,
on the same IP:Port,
at the same time,
via modern Windows methods! :)


Jul 3 '06 #10

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

Similar topics

21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
0
by: per.bergstrom | last post by:
To whom it may concern, The serial port server 'cnhd38' has been terminated (on who's initiative, I don't know). It affects the users of the (at least) following nodes: cnhd36, cnhd44, cnhd45,...
2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
5
by: Jason | last post by:
After a server accepts a client connection on a certain port, a new socket is created on the server on a system managed dynamic port to handle the connection. Please confirm this. If so, how...
6
by: kai | last post by:
Hi, I was tring to run an example (HelloWorld.aspx) from MSPrss book, I get this message: "ASP.NET Development Server faild to start listening port 1034. Error message: An attempt was made...
7
by: Sharon | last post by:
Hi all, I've implemented a TCP server using the Socket async methods. When connecting to the server from 3 instances of hyper terminal, i've noticed that each of the newly created server sockets,...
4
by: H J van Rooyen | last post by:
Hi All, I am writing a polling controller for an RS-485 line that has several addressable devices connected. It is a small access control system. All is well- the code runs for anything from...
25
by: bmearns | last post by:
Is it possible to specify which port to use as the outbound port on a connection? I have the IP address and port number for the computer I'm trying to connect to (not listening for), but it's...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
5
by: Maciej Sondej | last post by:
Hi, I have problem. I want to react on event which come from IO.Port(RS232). I have a class that works on console application class Program { static void Main(string args) {
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.