Socket exception in tcp listener
NickName:ByoTic Ask DateTime:2014-05-11T21:16:05

Socket exception in tcp listener

I trying to run this code:

listener = new TcpListener(IPAddress.Any,port: 80);
            listener.Start();
            socket = listener.AcceptSocket();

but it throws the following exception: An attempt was made to access a socket in a way forbidden by its access permissions

What may be the reason?

Copyright Notice:Content Author:「ByoTic」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23593077/socket-exception-in-tcp-listener

More about “Socket exception in tcp listener” related questions

Socket exception in tcp listener

I trying to run this code: listener = new TcpListener(IPAddress.Any,port: 80); listener.Start(); socket = listener.AcceptSocket(); but it throws the following exception: An

Show Detail

TCPListener throwing Socket Exception on listener.EndAcceptTcpClient(asyncResult)

I am working on a TCP Listener Service which waits for client to connect and receive files. The following code is used to initialize TCP Listener. var listener= new TcpListener(IPAddress.Any, ...

Show Detail

Java TCP socket listener

I have very simple TCP socket listener. I want to stop receiving data when the character is null or #. while ((line = in.readLine()) != null && !line.equals("#")){ tcpData = tcpData + ...

Show Detail

Connect to TCP socket listener with a WebSocket server

I have a application that has a TCP socket listener that I need to broadcast from a server-side application to. I do not control this TCP listener and can't make any changes to it. Is there any way...

Show Detail

A listener TCP/IP socket in a windows service

I want to create a windows service to run a listener TCP/IP socket. The listener TCP/IP socket has a 'While True' loop and works in a windows application. I have a simple windows service with a tim...

Show Detail

TCP listener start exception in C#

I create a TCP listener by using the code below: TCPListener = new TcpListener(IPAddress.Any, 1234); I start to listen TCP devices by using the code below: TCPListener.Start(); But here, i don't

Show Detail

TCP Socket is not responding

I am developing TCP Client/Server application using C# socket programming. Sometimes, I encounter a very strange problem as the server (windows service) is running on port (8089) but it is not list...

Show Detail

Python TCP Socket Listener (Debian)

I'm getting started trying to write a Python TCP socket listener. I have a Modem connected to my Debian box that reports GPS NMEA sentences every 60 seconds. For now all I want to do is have a pyt...

Show Detail

Setup a TCP listener in PHP

We're using a system at the moment that takes an incoming JSON request over TCP and responds using JSON too. Currently I've set up my socket like so in PHP: $socket = fsockopen($host, $port, $errn...

Show Detail

TCP Socket Listener clients disconnected when Application Pool recycled

I created a TCP socket listener wherein multiple clients are connecting. This listener class is included on a WEB Api which is deployed on the Internet Information Services (IIS). My problem is every

Show Detail