Re: Socket Problem: Client connects to a server that does not exit!



Ramon wrote:

I've tested the client program on Linux and it worked perfectly
(compiler version 1.6.0_07) -- i.e. when there was no server running on
port 60000, the client had thrown java.net.ConnectException.

It means that either:
[1] There is a bug in Windows (for a change :))

Unlikely, but not impossible. Noone else with Windows has been able to replicate
your problem so it's unlikely to be a simple problem. But there could be some
special configuration setup in your system which has triggered this problem.

[2] or my Windows javac is "corrupted"

I don't see how the compiler could be at fault. That only converts your Java
source code to byte-code. The actual Socket code is in rt.jar, which is
presumably downloaded from java.sun and is exactly the same code everyone else
is using.

[3] or, as some of you has pointed out, their might be some sort of
program running in the background...etc.

That seems most likely. If you had a firewall previously check it has been
removed from the system entirely, it might not have uninstalled completely if
it was active when you uninstalled it. Check that the Windows firewall is
really disabled - Windows has nasty habit of ignoring what you tell it do do
and doing what it thinks best instead. Check your AV to see if it monitors
incoming network connections- I believe some monitor network traffic for
virus/trojan payloads. Try a different port - is this specific to port 60000?


I'll try to upgrade the javac and if the problem persists, I'll try to
monitor the connection.

--
Nigel Wade
.



Relevant Pages

  • RPC Connection problems with XP Firewall, dispite proper exeptions
    ... So there seems to be a problem with DCOM or RPC over the Windows XP SP2 ... Windows Firewall: Allow local program exceptions ... If you enable this policy setting, Windows Firewall allows the computer to ... does not open TCP port 135 or 445. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: keeping ports open
    ... If a port is open, it means that 1) a software or service is running on your ... and 2) you're not using a firewall or your firewall isn't ... Use firewall software and hardware and antivirus software that is ... Follow the instructions for hardening Windows and IIS at ...
    (microsoft.public.security)
  • Re: Opening port 135
    ... Windows Server 2003 doesn't have built-in firewall. ... open port 135 on the firewall. ... This behavior occurs because Windows Firewall has blocked the request. ... Before you use this method try both Method 1 and Method 2 in the workaround ...
    (microsoft.public.windows.server.general)
  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)
  • Re: How to Maintain an IIS Server?
    ... > server running on a Windows 2000 server. ... before a firewall and antivirus have been installed]. ... open ports; however, this will not identify which program is using the port. ...
    (microsoft.public.inetserver.iis.security)