Home > Software engineering >  Vb6 winsock, two computers can remote control each other, unable to connect??
Vb6 winsock, two computers can remote control each other, unable to connect??

Time:09-24

I have written in vb6 winsock control server and the client program, a computer is to set the DMZ host, as the server, network is unicom, another computer to use China unicom's wireless card, as the client, two computers can remote control, also can use winsock connection, but, if I put unicom wireless card for telecom wireless card, two computers can ping, also can remote control, but can not connect with the winsock, don't know what reason, how to solve???????

CodePudding user response:

Their top up first

CodePudding user response:

Nobody in here, hurry!!!

CodePudding user response:

Check the unicom is a public IP

CodePudding user response:

How to check whether the public IP? Said again, I use the telecom wireless card can ping the computer IP, and also can use the remote control?

CodePudding user response:

reference bakw reply: 3/f
check unicom is public IP

How to check whether the public IP?? Then again, if not, how do I use telecom wireless card ping this computer's IP, also can use the remote control,

CodePudding user response:

reference bakw reply: 3/f
check unicom is public IP
I checked, is the public IP

CodePudding user response:

Winsock is using TCP or UDP communication?
Two unicom IP should be a network segment, fewer restrictions,
A unicom a telecom IP is two segments, by routing when there may be restrictions,
Had better use VPN software to two computers to form a virtual local area network, so no matter what the actual connection, communication is very convenient,

CodePudding user response:

refer to 7th floor Tiger_Zhao response:
winsock is using TCP or UDP communication?
Two unicom IP should be a network segment, fewer restrictions,
A unicom a telecom IP is two segments, by routing when there may be restrictions,
Had better use VPN software to two computers to form a virtual local area network, so no matter what the actual connection, communication is very convenient.

Winsock is to use TCP, a unicom telecom, can ping each other, can also remote control, remote control is not subject to any restrictions?? I've met are unicom directly cannot ping each other, what reason is this??

CodePudding user response:

The remote control is a hybrid protocol, will try to use a variety of protocols, is not only the TCP,
What's wrong?
You try using a different port, sometimes mistake is purely port was taken,

CodePudding user response:

First learn how to use the netstat command,

CodePudding user response:

references 9 f Tiger_Zhao response:
remote control is a hybrid protocol, will try to use a variety of protocols, is not only the TCP,
What's wrong?
You try using a different port, sometimes mistake is purely port was taken,

Have no errors, I just always connected, the state has always been a 6, I don't know what reason be?? Port setting is 0, random port,

CodePudding user response:

The
references to the tenth floor zhao4zhong1 response:
first learn to use the netstat command,

I baidu this command, the problem is how to apply the command to deal with the problem I mention?? Please grant instruction!!!!!

CodePudding user response:

Public service side shouldn't be used for random port, who knows if it was your client even up ah,

CodePudding user response:

reference 13 floor Tiger_Zhao reply:
public server should not be used for random port, who knows if it was your client connect up,

I have a lot of clients, that how to assign port, besides, server IP should be less likely to be others know

CodePudding user response:

The service side, a port can response to several clients

CodePudding user response:

Try change the port, the mobile broadband is selective connected port problem, 21, 23 and 22 is good, but not...

CodePudding user response:

reference 16 floor bakw response:
try change the port, mobile broadband is selective connected port problem, 21, 23 and 22 is good, but can't...

Feeling that is not the problem of port, I am using winsock control array, set the winsock port 4444 (0), a connection request after the reload a winsock control (n), a port in random distribution, should be the other problem????

CodePudding user response:

The router can be set port is prohibited,

CodePudding user response:

With network IP test no problem first then to public IP, public IP is set up in the router

CodePudding user response:

references the 19th floor heimasoft response:
use Intranet IP test no problem first then to public IP, public IP is set up in the router
a few computer set to LAN, all test will be a problem, but in the public how to test, can't, what problem????

CodePudding user response:

Public for the sake of safety, can disable many ports, intercept some packets,
You have to ask the local unicom, telecom customer service, you such circumstance what port is available,

CodePudding user response:

refer to 21st floor Tiger_Zhao response:
public for the sake of safety, would disable many ports, intercept some packets,
You have to ask the local unicom, telecom customer service, what port is available, you such circumstance

The reason why you mean port??????? There are other possibilities??

CodePudding user response:

refer to 21st floor Tiger_Zhao response:
public for the sake of safety, would disable many ports, intercept some packets,
You have to ask the local unicom, telecom customer service, what port is available, you such circumstance
why you mean port??????? There are other possibilities??

CodePudding user response:

Master??? How to solve ah, hurry!!!!!!!!!!

CodePudding user response:

If not the cause of the port, is also the problem of the network environment, guess there is no light,
Urgent call ah,

CodePudding user response:

To call China unicom customer service, he said I did not understand,

CodePudding user response:

Is it because unicom and telecommunications is not a network segment, so even to be illogical between????

CodePudding user response:

Repeated calls in the past, let customer service to find their technical staff to answer you,

CodePudding user response:

Now have a problem again, I use a computer to set the DMZ host, as the server, network is unicom (turns out to be the unicom broadband in the home, now with units of unicom broadband, IP address changed), another computer to use China unicom's wireless card, as the client, two computers can remote control, can ping, but can not connect with the winsock, don't know what the reason, and the original telecommunication cable network card the same problems, but this is China unicom, also appear such problem, what reason????

CodePudding user response:

Solve the building Lord, can you ask a few questions, my computer connected to the server remotely using VB Winsock, why has been linked with no response, thank you
  • Related