Valhalla Legends Archive

Programming => General Programming => Topic started by: Crypticflare on May 30, 2003, 04:43 PM

Title: Ran into some troubles.
Post by: Crypticflare on May 30, 2003, 04:43 PM
From a previous post I was working on a mutli-user supported Chat/Server app, I coded the server and the chat client and they both work on my upstairs computer (they can send and recieve chat)
Heres my dilemma:

I keep the server running upstairs since I run the dyndns host, for reference sake lets say my account is: cf.ath.cx

On the server Portion I put with the connection sequence

winsock1.LocalPort= 6666
winsock1.listen


So the server is listening for data.

On my client portion I have:


winsock1.remotehost= "cf.ath.cx"
winsock1.remoteport=6666
winsock1.connect

Now If I take my Client part of the app downstairs to my other computer and try to run it. I get a run-time error on the connect sequence, it says socket is forcefully rejected

I would appreciate any help that could point out what I'm doing wrong.

thanks


Edit: Code tags didn't work with my post, sorry about them not being in tags.
Title: Re:Ran into some troubles.
Post by: iago on May 31, 2003, 03:22 AM
On the server computer run a packet sniffer and see if they're even connecting.  If not, try pinging it to make sure there's no network problems.
Title: Re:Ran into some troubles.
Post by: Grok on May 31, 2003, 09:03 AM
Are you running a firewall on the host?

Did you set the protocols to sckTCPProtocol on both server and client?

Can the client PC ping the server PC?