• (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4

Basic Client/Server Chat Application in C#

#46 chamburg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-November 13

Posted 01 November 2013 - 08:35 AM

View Postnata_steev, on 29 October 2013 - 12:58 PM, said:

I downloaded this project and run it
but I have a problem
the problem is
No connection could be made because the target machine actively refused it
on this line // tcpClient.Connect("127.0.0.1", 4296); //
what kind of connection should I run ?
thanks a lot


The net.tcp port is 800*, so I would try changing the port from 4296 to 8008 or 8001 or 800x where x=0-9 and see if that connection works.
I was getting the same error, and I changed the IP to my server (rather than "home" IP), and the port to a net.tcp port, and it started running. Hope it works.
Was This Post Helpful? 0
  • +
  • -

#47 shams78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-March 14

Posted 04 March 2014 - 05:06 AM

Can someone tell us how to use the code. i have unzip the Chat Server & client both. But not able to use.
when i run the application it is throwing exception like "No connection could be made because the target machine actively refuse it. I have also changed the TCP IP & Port. But not able to use.
Please help me.

Shmsuddin
Was This Post Helpful? 0
  • +
  • -

#48 andrewsw  Icon User is offline

  • It's just been revoked!
  • member icon

Reputation: 3609
  • View blog
  • Posts: 12,417
  • Joined: 12-December 12

Posted 04 March 2014 - 05:16 AM

Quote

No connection could be made because the target machine actively refuse it.

This error is mentioned several times in responses to this tutorial. I suggest that you read through all the responses.
Was This Post Helpful? 1
  • +
  • -

  • (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4