Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 17th, 2006, 6:32 PM   #11
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Yeah, I figured it was somethign like that. It's got to be somethinh to do with your internet setup. Check your firewall, AV, etc.
Booooze is offline   Reply With Quote
Old May 17th, 2006, 6:44 PM   #12
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
Quote:
Originally Posted by Booooze
Yeah, I figured it was somethign like that. It's got to be somethinh to do with your internet setup. Check your firewall, AV, etc.
The only firewall I use is windows firewall.
__________________
Death smiles at us all. All a man can do is smile back.
Eric the Red is offline   Reply With Quote
Old May 17th, 2006, 7:00 PM   #13
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Do you have any anti-virus on? There's got to be something.
Booooze is offline   Reply With Quote
Old May 17th, 2006, 9:13 PM   #14
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
Quote:
Originally Posted by Booooze
Do you have any anti-virus on? There's got to be something.
I tried everything that you said to try. I even ran "msconfig" and disabled all startup programs except for "microsoft programs" so there's nothing running in the background.

Any other ideas?

I opened my Java IDE then ran the server. Then I opened another window and ran the Client part of the program. Doesn't seem to work.. Please help me out, i'm new to sockets and networking so I could have done a really obvious mistake (to you).
__________________
Death smiles at us all. All a man can do is smile back.
Eric the Red is offline   Reply With Quote
Old May 17th, 2006, 9:27 PM   #15
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 936
Rep Power: 4 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
This is a wild guess, but the problem might be that the server is sending the data before the client has time to bind the input readers to the socket. Try sending the data repeatedly every few seconds. If you are still having trouble try reading this sockets tutorial.
titaniumdecoy is online now   Reply With Quote
Old May 17th, 2006, 11:04 PM   #16
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by titaniumdecoy
This is a wild guess, but the problem might be that the server is sending the data before the client has time to bind the input readers to the socket. Try sending the data repeatedly every few seconds. If you are still having trouble try reading this sockets tutorial.
I think the code is excuting and stoping to quickly. Maybe try throwing some swing in there, and put those under buttons, or something. Or, at least put a delay in. I don't think the two are aligning properly. Ones listening to fast, or ones connecting to fast.
Booooze is offline   Reply With Quote
Old May 17th, 2006, 11:20 PM   #17
jaeusm
Programmer
 
jaeusm's Avatar
 
Join Date: Feb 2006
Location: Columbus, OH
Posts: 84
Rep Power: 3 jaeusm is on a distinguished road
Are you sure you are starting your server first?
Are you sure your firewall is not blocking connections to your server?
You're getting a ConnectException because nothing is listening for a client connection. However, like I said, your code works fine on my machine.

Why don't you just open a couple command prompts and run each program manually instead of using an IDE? It shouldn't matter, but it will help eliminate anything you might be missing.

Quote:
Ones listening to fast, or ones connecting to fast.
In his code, the ServerSocket will block indefinitely.
jaeusm is offline   Reply With Quote
Old May 18th, 2006, 1:42 AM   #18
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by jaeusm
Are you sure you are starting your server first?
Are you sure your firewall is not blocking connections to your server?
You're getting a ConnectException because nothing is listening for a client connection. However, like I said, your code works fine on my machine.

Why don't you just open a couple command prompts and run each program manually instead of using an IDE? It shouldn't matter, but it will help eliminate anything you might be missing.


In his code, the ServerSocket will block indefinitely.
Totally forgot about the fact that it worked for you. If you haven't solved it by this weekend, I'll try this code. I'll have more time, and plus I have to install java :p
The fact that it worked for someone else, points to the problem being your machine.
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:17 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC