No subject


Sat Nov 12 19:29:10 PST 2005


top of my head I'd be looking for a DNS problem, or an incorrect routing
table. But I'm puzzled that ServerSocket is hanging in the constructor - all
it does is bind to a local port. I suggest you get a couple of stack dumps
when the program is 'dead' to show where the two threads have got stuck. Try
explicitly using the loopback address (127.0.0.1) instead of "localhost".
Use "netstat -a" (or the equivalent on your OS) to show whether the port
you're trying to use is free, do an nslookup of localhost, ping localhost
and so on and confirm that other network programs (mail reader, internet
explorer etc) still work.

Failing that - stick to the laptop!

Hope this helps,
Peter H

----- Original Message -----
From: "Caro, Samuel" <Samuel.Caro at USAHQ.UnitedSpaceAlliance.com>
To: <advanced-java at xcf.berkeley.edu>
Sent: Friday, January 05, 2001 8:37 PM
Subject: RE: Sockets (I guess I wasn't clear)


>
> My problem is NOT the java program. the java program works at
> work and from my house with a laptop I got from work.
> It only fails on my own PC.
> My question what kind of problems/settings should I look for on my PC?
> perhaps I am missing drivers I don't know.
> Perhaps this is not a JAVA question but it certainly not a "Basic Java"
> question like Tianwei Yao said.
> Please! Please! Please! DO NOT TURN this into a "what is advanced?"
thread.
>
>
> > theServer = new ServerSocket(5383);
> > cpcSS = new Socket("localhost", 5383);
>
> is NOT the entire java code. The two lines are in two different
> classes but neither one of them comes back.
> some of you said that the server must start accepting
> I do have the code to accept connections but it does not get there
> because theServer = new ServerSocket(5383); would never comeback
> At home I do have a dial-up connection and I am sure I am connected
> so that is not the problem like someone suggested
>
> I'll try "Java Network Programming" Thanks



---
To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
To get help, mail advanced-java-help at xcf.berkeley.edu



More information about the Advanced-java mailing list