Mesaje recente

Members
Stats
  • Total Posts: 17,786
  • Total Topics: 1,234
  • Online today: 340
  • Online ever: 340
  • (Today at 00:10)
Users Online
Users: 0
Guests: 184
Total: 184

de ce da false?

Started by kquizak, 25 December 2006, 21:38

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kquizak

cam asa testez
System.out.print(InetAddress.getByName("127.0.0.1").isReachable(100));
rezultatul e false chiar si pt localhost...pt adrese ip externe nici atat...
date referinta:
Sun Microsystems Inc. 1.5.0_06 pe Windows 2003 5.2 (64 bit)
din cmd.exe e ok...

firewall???nu pricep...
network-tools.ath.cx ---nmap yourself

kman

Code (java) Select
import java.net.*;

public class a {
        a (String b) throws Exception {
                System.out.print(InetAddress.getByName(b).isReachable(100) + "\n");
        }

        public static void main (String args[]) {
                try {
                        a b = new a(args[0]);
                } catch (Exception e) {
                        e.printStackTrace();
                }
        }
}


kman@dracula:~$ java a www.tfm.ro
true
kman@dracula:~$ java a 127.0.0.1
true
kman@dracula:~$ java -fullversion
java full version "1.5.0_08-b03"

Pare sa mearga totusi, poate nu ai ridicata interfata interna (hint: route print si vezi sa existe o intrare pentru 127).