C # SimpleTcpServer Does Not Recognize IPAddress RRS feed

  • Question

  • I am using SimpleTcpServer in a Windows Forms Application and when I use an IPAddress Port 8080 gives Exception System.Net.Sockets.SocketException

    The Form starts with the following statement below:

    private void Form1_Load(object sender, EventArgs e)
            this.WindowState = FormWindowState.Minimized;
            server = new SimpleTcpServer
                //server.Delimiter = 0x13;
                StringEncoder = Encoding.UTF8
            server.DataReceived += Server_DataReceived;

    After the Form gives a Load executes the StartService giving exception on the server.Start (ip, 8080) line;

    private void IniciaServico()
            IPAddress ip = IPAddress.Parse("");
            server.Start(ip, 8080);
            txtStatus.Text += "Serviço ativo...";

    Note to use Ip on port 8910 works, but I need to communicate with this Ip

    Monday, June 3, 2019 10:33 PM

All replies