473,404 Members | 2,170 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,404 software developers and data experts.

"AddressAlreadyInUse" error calling start() on TcpListener...

Hi:

I'm creating a simple port listener. When I call start() method it returns
"AddressAlreadyInUse" error. He is my code...

Int32 port = 80;
IPAddress localAddr = IPAddress.Parse( "127.0.0.1" );
TcpListener server = new TcpListener(port);
server = new TcpListener( localAddr, port );
server.Start(); // Get error here

Thanks,
Charlie
Mar 1 '07 #1
2 2719
Hi,

"Charlie@CBFC" <ch*****@cbfconsulting.comwrote in message
news:e3**************@TK2MSFTNGP05.phx.gbl...
Hi:

I'm creating a simple port listener. When I call start() method it
returns "AddressAlreadyInUse" error. He is my code...

Int32 port = 80;
IPAddress localAddr = IPAddress.Parse( "127.0.0.1" );
TcpListener server = new TcpListener(port);
server = new TcpListener( localAddr, port );
server.Start(); // Get error here
Probably you already have another process running in port 80, did you try
another port?

Check if you have IIS running in your computer
Mar 1 '07 #2
Thanks Ignacio. Needed to shut off IIS.

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

"Charlie@CBFC" <ch*****@cbfconsulting.comwrote in message
news:e3**************@TK2MSFTNGP05.phx.gbl...
>Hi:

I'm creating a simple port listener. When I call start() method it
returns "AddressAlreadyInUse" error. He is my code...

Int32 port = 80;
IPAddress localAddr = IPAddress.Parse( "127.0.0.1" );
TcpListener server = new TcpListener(port);
server = new TcpListener( localAddr, port );
server.Start(); // Get error here

Probably you already have another process running in port 80, did you try
another port?

Check if you have IIS running in your computer

Mar 1 '07 #3

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

Similar topics

0
by: Andrew Daniels | last post by:
I am having a problem calling a 3rd party COM object in ASP.Net. My problem is happening when i try and create a instance of the object. The code and DLL are valid as has been working on several...
8
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
0
by: Randy Foster | last post by:
We have a stored procedure (on DB2 8.1 FP5) that returns multiple result sets which we are calling from Java (WebSphere 5.0.2.8). We can call the stored procedure from the DB2 command line...
1
by: Amy L. | last post by:
I am getting the following error "No process is associated with this object" with the below code. Can someone please explain where the problem could be. The code below is very simple and mostly...
1
by: dwp | last post by:
hResult = pDefaultDomain->CreateInstanceFrom( pAppDomain- >m_bstrLoadAssemblyName, pAppDomain->m_bstrManagedClass, &pObjectHandle ) This call gives the E_ACCESSDENIED return value. I have...
0
by: Manuel Arroba | last post by:
asp.net oledb command parameter error calling an as400 program Hi... I have an as400 program that I can call it directly and it works: variable= "xxxx" sql = "CALL METSIGOP.SIGOPRC ('" +...
6
by: Joe | last post by:
C# .NET 2.0 I've got a Windows Service that works exactly as I expect it to. However, it does rely on a few Configuration settings. If the customer doesn't configure it correctly, the service...
1
by: fartknuckle | last post by:
When I try to call gtk like so: import gtk I get the error: ImportError: No module named gtk
0
by: pinky22 | last post by:
I am calling SSIS package from a .Net windows UI. Both SSIS & .Net app are created in 2008. The SSIS package is stored in file system. When I ran .Net app I got error- The package failed to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.