Home > Back-end >  C design of LAN chat room, always appear connection timeout
C design of LAN chat room, always appear connection timeout

Time:10-16

My reference book design a LAN chat room, but it is always a connection timeout, don't know what to do

CodePudding user response:

IP/port is correct

Service program whether to allow normal

Whether the firewall intercept port

CodePudding user response:

My IP is obtained, the port is fixed, set up 1200

I don't understand how it can be judged whether the server program to allow normal

How to judge whether my firewall blocked ports

CodePudding user response:

Many online DEMO oneself look for TCP/IP protocol, estimates that you have a problem of coding

CodePudding user response:

It is possible that your physical network is bad,

CodePudding user response:

The physical network is bad what reason causes, how to solve

CodePudding user response:

Should not the physical network problem, you PING see delay under high is not high, if is not high, should be the problem of algorithm, port communication might be the problem

CodePudding user response:

If the server program is also your own design, to check the connection on the server access

CodePudding user response:

Here there are a lot of server and client example source code, test is no problem, you can have a try first, determine whether or not you have a network problem.
Download address: http://download.csdn.net/detail/geoff08zhang/4571358

CodePudding user response:

Solve with the thinking of computer, soft hard, after first use a LAN software and see that no, if you can problem that must be your program, and then look at port IP firewall, such can hardly get correct, finally look at the implementation process the commented out then bit by bit debugging are commented

CodePudding user response:

A firewall

CodePudding user response:

Solve with the thinking of computer, soft hard, after first use a LAN software and see that no, if you can problem that must be your program, and then look at port IP firewall, such can hardly get correct, finally look at the comment out implementation process are commented out and then bit by bit debug agree ~! ~! ~! ~ ~!!!!!

CodePudding user response:

LAN chat will timeout, generally is a software problem, hardware if ping -t bbs.csdn.net (your server IP) see replace such situation, if is 3 2 impassability is serious network problem
  • Related