Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Net connection errors
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
jrblast




PostPosted: Fri Feb 09, 2007 9:52 pm   Post subject: Net connection errors

I'm making a multi user chat program. The way it works is the server waits for a connection on for 40000 and then when the client connects, the server sends a new port for connection. The connections are closed and then the user waits for the server to connect and the server will then wait for another connection on port 40000. The problem I'm having is when my friend tries connecting to me, and I connect back to him i get unknown net error #10060 (I think thats it.) You can try connecting to me, I'll post the client and server and leave the server running here. I can connect to myself as localhost and with my router IP. And I have made sure my ports are forwarded. Anyone got any ideas?

EDIT: The exact error is
code:
Net.Error. Windows Socket Library Error #10060

EDIT2: Well, between when I posted and now only one person tried to connect so I'm turning off the server



client 2.0.t
 Description:
Connect to chat servers.

Download
 Filename:  client 2.0.t
 Filesize:  6.83 KB
 Downloaded:  139 Time(s)


Server.t
 Description:
Allows users to conect to you

Download
 Filename:  Server.t
 Filesize:  13.47 KB
 Downloaded:  161 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
rollerdude




PostPosted: Tue Feb 20, 2007 9:48 am   Post subject: Re: Net connection errors

well... i know in the examples theres a "NETCHAT" program.... maybe try und get an idea from there... sorry.. i haven't tried working with a network yet

(note: i'm pretty sure this example only comes with turing 4.0.5 or something like that, if you need it, i'll send it)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: