![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Expert Programmer
|
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.
|
|
|
|
|
|
#12 | |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
Quote:
__________________
Death smiles at us all. All a man can do is smile back. |
|
|
|
|
|
|
#13 |
|
Expert Programmer
|
Do you have any anti-virus on? There's got to be something.
|
|
|
|
|
|
#14 | |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
Quote:
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. |
|
|
|
|
|
|
#15 |
|
Expert Programmer
|
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.
|
|
|
|
|
|
#16 | |
|
Expert Programmer
|
Quote:
|
|
|
|
|
|
|
#17 | |
|
Programmer
Join Date: Feb 2006
Location: Columbus, OH
Posts: 84
Rep Power: 3
![]() |
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:
|
|
|
|
|
|
|
#18 | |
|
Expert Programmer
|
Quote:
The fact that it worked for someone else, points to the problem being your machine. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|