![]() |
trying to make a TCP/IP Chat Program - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: trying to make a TCP/IP Chat Program (/Thread-trying-to-make-a-TCP-IP-Chat-Program) Pages:
1
2
|
trying to make a TCP/IP Chat Program - Blackbone - 08-19-2013 hello guys , im currently making one a chat program so let's get started.. have a look at my code: Code: Dim Listener As New TcpListener(65535) Preview:
![]() form15.vb code for Chat room: Code: Dim Client As New TcpClient Preview
![]() Code: No connection could be made because the target machine actively refused it 192.168.1.2:65535 ![]() RE: trying to make a TCP/IP Chat Program - Bonfire - 08-19-2013 I haven't looked at your code yet, and I'm going on a limb here but... Have you tried forwarding that port? RE: trying to make a TCP/IP Chat Program - Xanii - 08-19-2013 It means that there is nothing listening at that port to accept the connection. Make sure that your server software is running and accepting connections. RE: trying to make a TCP/IP Chat Program - Blackbone - 08-19-2013 (08-19-2013, 08:18 PM)Bonfire Wrote: I haven't looked at your code yet, and I'm going on a limb here but... Have you tried forwarding that port? yes I tried to use one of my port forwarded port and it also didn't work please help, much appreciate it !! (08-19-2013, 08:37 PM)Xanii Wrote: It means that there is nothing listening at that port to accept the connection. Make sure that your server software is running and accepting connections.oh!!! I wasn't listening! how dumb am I, but I got a question, if others gonna use this what port should I use :O? RE: trying to make a TCP/IP Chat Program - Xanii - 08-19-2013 (08-19-2013, 08:37 PM)Blackbone Wrote:(08-19-2013, 08:18 PM)Bonfire Wrote: I haven't looked at your code yet, and I'm going on a limb here but... Have you tried forwarding that port? It's all up to you, you make the software. RE: trying to make a TCP/IP Chat Program - Bonfire - 08-19-2013 You might want to refer to this to find an unused port number: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers You don't have to, but it's a suggestion. Keep it simple. RE: trying to make a TCP/IP Chat Program - Blackbone - 08-19-2013 (08-19-2013, 08:48 PM)Bonfire Wrote: You might want to refer to this to find an unused port number: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers I used Ports 80 & 443 seems legit ![]() RE: trying to make a TCP/IP Chat Program - Eternity - 08-19-2013 (08-19-2013, 08:56 PM)Blackbone Wrote:(08-19-2013, 08:48 PM)Bonfire Wrote: You might want to refer to this to find an unused port number: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers It doesn't really matter what port you use, aslong as the server is listening on the same port as the client. RE: trying to make a TCP/IP Chat Program - Xanii - 08-19-2013 I would also try to make sure to not use a port that is commonly used by something else. RE: trying to make a TCP/IP Chat Program - tuttomax - 08-20-2013 the ports from 1 to 1024 are system reserved use port from 49152-65535 for in depth analysis see this: http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml |