Please Help , Any response I will appreciate because I'm frustrated after two weeks of researches.
Settings :
- Router huawei HG532b configured to forward port = 50111 by enable NAT > DMZ and put
Host address IP = 192.168.1.5 , and that is static IP of my PC in the Network.
- the router configured to forward port = 50111 by mapping the port by NAT > Port Mapping and make
Protocol = TCP/UDP, External port = 50111, Internal port = 50111, Internal host = 192.168.1.5, Remote host = 192.168.1.5,
Mapping name=Chat.
- the router configured to forward port = 50111 by triggering the port by NAT > Port Triggering and make
Trigger protocol = TCP/UDP, Trigger start port = 50111, Trigger end port = 50111, Open start port = 50111, Open end port =
50111, Trigger name=Chat.
- The router have public or external or WAN IP = 188.167.2.4.
- The router configured to enable UPnP.
- The router configured LAN > DHCP by make Start IP address = 192.168.1.6, End IP address = 192.168.1.253
- The router is my Gateway with IP = 192.168.1.1.
-My PC have static IP = 192.168.1.5 and the firewall service is off and ther is no anti virus installed or any other firewall , and
have XP with service pack 3.
Problem:
I Created two program Client and Sever as they are part of chat program.
Sever its winsock have LocalPort = 50111 and putted to Listen mode.
Client its winsock have RemotePort = 50111 and have text box to put the remote IP in it and Command button called
connect to Connect.
When test the Client and Sever in the same PC that have Static IP = 192.168.1.5 and put the remote IP in Client =
192.168.1.5 evey thing go fine.
When test the Sever in the PC that have Static IP = 192.168.1.5 and put Client in PC have IP =192.168.1.9 and put the
remote IP in Client = 192.168.1.5 evey thing go fine.
When test the Client and Sever in the same PC that have Static IP = 192.168.1.5 and put the remote IP in Client =
188.167.2.4 and that is my router public or external or WAN IP , and press connect the winsock error "connection is
forcefully rejected" raise.
When test the Sever in the PC that have Static IP = 192.168.1.5 and put Client in PC have IP =192.168.1.9 and put the
remote IP in Client = 188.167.2.4 and that is my router public or external or WAN IP , and press connect the winsock error
"connection is forcefully rejected" raise.
When test the Sever in the PC that have Static IP = 192.168.1.5 and put Client in PC in another network have IP
=192.168.1.7 and put the remote IP in Client = 188.167.2.4 and that is my router public or external or WAN IP , and press
connect the winsock error timout raise.
I read that if the Client and Sever in the same PC and set the Client remote IP to public or external or WAN IP it will not
work.
I read that the XP with service pack 3 have issue with port forwarding.
I read that there is a technique called hole punching can round over router port forwarding or firewall.
Finally I want an expert explain to me what is the wrong and how to correct it and really appreciate him effort.