PDA

Click to See Complete Forum and Search --> : Someone who uses Winsock with success


Wolfstrike
Jan 24th, 2010, 12:25 AM
please help.

i'm using the server and client programs i've attached to try to link programs for my future game effort.
what is attached is a simple chat program.


1) the programs work perfectly on my computer with my IP address

2) the programs work perfectly to connect my computer with another computer that is connected to my modem.

3) when i try to connect my computer with my mom's computer in a different city, the program will not connect.
(error code 40006 wrong connection state(on client side))


* i have tryed to disable firewall and anti-virus on the server computer

* i have disabled anti-virus and windows firewall on the client computer
(there is no other firewall that i can see)

* i tryed using an alternative port that i tried to open through my provider (verison)

* i use my IP address from my router webpage, the other internet IP address won't do anything


server computer is windows XP
linked computer is Windows 2000
the remote computer that won't connect is Vista




there must be some code or a step missing that won't let make true links to other computers.
i would liek to get advice from someone who actually uses Winsock , thanks.

...or is there something other than Winsock i can try?

agent_007
Jan 25th, 2010, 11:09 AM
please help.

i'm using the server and client programs i've attached to try to link programs for my future game effort.
what is attached is a simple chat program.


1) the programs work perfectly on my computer with my IP address

2) the programs work perfectly to connect my computer with another computer that is connected to my modem.

3) when i try to connect my computer with my mom's computer in a different city, the program will not connect.
(error code 40006 wrong connection state(on client side))


* i have tryed to disable firewall and anti-virus on the server computer

* i have disabled anti-virus and windows firewall on the client computer
(there is no other firewall that i can see)

* i tryed using an alternative port that i tried to open through my provider (verison)

* i use my IP address from my router webpage, the other internet IP address won't do anything


server computer is windows XP
linked computer is Windows 2000
the remote computer that won't connect is Vista




there must be some code or a step missing that won't let make true links to other computers.
i would liek to get advice from someone who actually uses Winsock , thanks.

...or is there something other than Winsock i can try?

the app will work fine on lan but if you want to work it on wan then you have to port forward google for port forward and make sure the vista is 32 bit and that mswinsck.ocx is register on vista

Wolfstrike
Jan 27th, 2010, 03:34 AM
thanks for your reply.

can you explain that a little better?

i've already tried to open a port through my Verizon router.


how do i register mswinsck.ocx ?

agent_007
Jan 29th, 2010, 03:08 AM
thanks for your reply.

can you explain that a little better?

i've already tried to open a port through my Verizon router.


how do i register mswinsck.ocx ?
use this link for portforward issue http://portforward.com/
and to register an ocx first copy the mswinsck.ocx file to the system32 folder and then type this regsvr32 mswinsck.ocx in powershell