How do call tcp java.Can u give the example?

解决方案 »

  1.   

    I think the Port numbers used in your Java programs are not correct. Maybe you use the Port numbers < 1024.
      

  2.   

    oh , i forgot the port < 1024 , it's ok now .
      

  3.   

    this may be help u:
    In UNIX environments port numbers below 1024 are reserved and can be bound or used only by root (superuser). So if the non-root users try to run the application they will receive an error message saying that "java.net.BindException: Permission Denied"
     
    There are two ways to avoid this exception. One way is to login as root and run the program. The other way is to specify a port greater than 1023