The problem of soap programming and ip address port number

I started to study soap programming a few days ago, a simple example has been written, and the machine has also passed the verification. Then I want to communicate directly with the third-party web service, and the result prompts

SOAP 1.1 fault SOAP-ENV:Server[no subcode]
"Unable to connect because the target computer actively refused.
"
Detail: connect failed in tcp_connect()

I thought it was rejected because of security issues, so I studied openssl, but it was not the case.

Then I researched the network problem,

Command: netstat -ano to check, the ip and port are 127.0.0.1:18083, and there are other ips, 0.0.0.0, local ip.

I checked the relevant information on the Internet, and 0.0.0.0 cannot be pinged, which represents all the IP addresses of the machine.

The Socket created based on 127.0.0.1 fails to establish a tcp connection with the local ip, and vice versa; that is, if the address used for monitoring is 192.168.0.1, only 192.168.0.1 can be used to connect

The Socket created based on 0.0.0.0 can establish a tcp connection whether using 127.0.0.1 or the local ip, that is, whether using 127.0.0.1 or 192.168.0.1 can connect

The encoding is based on 0.0.0.0 and can be achieved by binding IP_ADDR_ANY when establishing a tcp connection.

So the webservice can only be accessed locally. This is disgusting, it is obviously a webservice, but it can only be accessed locally.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325591823&siteId=291194637