savagemp5
12-12-2003, 02:35 PM
Doing a final year project for my school.
Encountered 2 problems here.
1) In the multiple winsock, i have successfully made the array so its like I can have many ppl connecting to me. This is my problem. --> eg Listening port = 44410
every array added + 1 new port in 44440 so a new conenction means 44411.
Lets say I have
44410 connected
44411 connected
44412 close
44413 connected
I can't get the clients to connect to the closed port 44412. I think it might be the way I program the listening ports such that a new array and the port will + 1.
From the many examples i saw on the net, i don't quite understand how they do it, but I got the idea of creating arrays of it and making a new port for connection. This problem isn't major, if lets say i have like 1 week to figure it out with my projcet teammate
2) THIS IS A BIG PROBLEM ITS 6 AM NOW I CANT SLEEP UNLESS I SOLVED THIS STUPID PROBLEM. ok here it is
Locally my vb client and server can connect. Through the internet I can't. Lets say there isn't speed issue, how can i solved this ?
for eg on my server i ran
msgbox winsock1.localIP
winsock1.localport = 44410
winsock1.listen
And i get my internet address + listening to 44410
but when i ran netstat -an i get a listening port of 0.0.0.0:44410
I can run this program locally, so its really hard for me to debug. From my understand the 0.0.0.0 means local IP, that explains why locally i can. But the reply from winsock1.localIP states that the localip method which is read only, already lists my internet IP
When i run ipconfig /all its correct.
Called up 10 gus to help me test my program. None of them can conenct to the very first part. **** i release my project to test other stuff but end up i have this.
Any solutions to the 2) ? which is more critical to me now.
2 days ago i was able to run thru the net and now i can't i wondered was it server or client side problems
Anyone experience this please help, very desperate down here to test for bugs before i go on developing.
Encountered 2 problems here.
1) In the multiple winsock, i have successfully made the array so its like I can have many ppl connecting to me. This is my problem. --> eg Listening port = 44410
every array added + 1 new port in 44440 so a new conenction means 44411.
Lets say I have
44410 connected
44411 connected
44412 close
44413 connected
I can't get the clients to connect to the closed port 44412. I think it might be the way I program the listening ports such that a new array and the port will + 1.
From the many examples i saw on the net, i don't quite understand how they do it, but I got the idea of creating arrays of it and making a new port for connection. This problem isn't major, if lets say i have like 1 week to figure it out with my projcet teammate
2) THIS IS A BIG PROBLEM ITS 6 AM NOW I CANT SLEEP UNLESS I SOLVED THIS STUPID PROBLEM. ok here it is
Locally my vb client and server can connect. Through the internet I can't. Lets say there isn't speed issue, how can i solved this ?
for eg on my server i ran
msgbox winsock1.localIP
winsock1.localport = 44410
winsock1.listen
And i get my internet address + listening to 44410
but when i ran netstat -an i get a listening port of 0.0.0.0:44410
I can run this program locally, so its really hard for me to debug. From my understand the 0.0.0.0 means local IP, that explains why locally i can. But the reply from winsock1.localIP states that the localip method which is read only, already lists my internet IP
When i run ipconfig /all its correct.
Called up 10 gus to help me test my program. None of them can conenct to the very first part. **** i release my project to test other stuff but end up i have this.
Any solutions to the 2) ? which is more critical to me now.
2 days ago i was able to run thru the net and now i can't i wondered was it server or client side problems
Anyone experience this please help, very desperate down here to test for bugs before i go on developing.