Home > Back-end >  Used in Delphi IIdHTTserver control error: socket error # 10054 Connection reset by peer to solve!
Used in Delphi IIdHTTserver control error: socket error # 10054 Connection reset by peer to solve!

Time:10-07

Is like that, I write a program in delphi6, through IdHTTserver control implementation, to provide a service to invoke the address to each other, such as:
http://221.131.87.66:8092/doReqToHis? Service=getyy
But encounter a problem, I wrote a demo to invoke the service address, Shanghai, jiangsu has tried, can be normal to receive data, send data over there with my demo is hangzhou, my side receiving less than, error socket error # 10054 Connection reset by peer,
I am in the unit network, made a map for me on public network IP, arguably, Shanghai, jiangsu is no problem, our unit network Settings should be no problem ah, each other also said their network no problem, they call others service address is ok, you do great god please take a look at this problem, I quick collapse,,,
Below is I receive data code:
Procedure TFormMain. IdHTTPServer1CommandGet (AThread: TIdPeerThread;
RequestInfo: TIdHTTPRequestInfo; ResponseInfo: TIdHTTPResponseInfo);
Var
Strxml_in strxml_out, ErrMsg: string;
SServiceName str_requestvalue: string;
The begin
MaText str_requestvalue:=UTF8Decode (RequestInfo.Params.Com);

(if there is a great god can help me in hangzhou test solution is better)
Thank you for your attention! By the way, the other is tong ping my public IP

CodePudding user response:

Connection has been reset

CodePudding user response:

This, still want to confirm the hangzhou side of the network, such as network operators of telecom and netcom, if there is any agent, for example, firewall, VPN, what ah,,,
  • Related