aspose file tools*
The moose likes Distributed Java and the fly likes problem opening port 900 on mac os x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "problem opening port 900 on mac os x" Watch "problem opening port 900 on mac os x" New topic
Author

problem opening port 900 on mac os x

hiteshkumar ubharani
Greenhorn

Joined: Dec 15, 2006
Posts: 3
hi i am new to client server programming, also java, and I tried using a new external tool called tnameserver in ecllipse, and when i tried running this tool I got an error as follows:

Feb 4, 2007 8:35:45 PM com.sun.corba.se.impl.transport.SocketOrChannelAcceptorImpl initialize
SEVERE: "IOP00410216: (COMM_FAILURE) Unable to create listener thread on the specified port: 900" and much more continued

my professor says that
Possible causes are:
1) You are using a Linux/Unix or Mac machine. These Operating system prohibit non-root opening a socket on any port < 1024.
2) You already have another application listening on port 900. If you
are using Windows, "netstat -nao" will show you which one it is. If you
are using some other OS, you'll have to find the command yourself

please help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
Welcome to JavaRanch.

I'd say your professor is right.
[ February 05, 2007: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
hiteshkumar ubharani
Greenhorn

Joined: Dec 15, 2006
Posts: 3
I have found the command its netstat again for mac, but still wondering what next
Reza Ravasizadeh
Ranch Hand

Joined: Jun 08, 2004
Posts: 177
netstat tells you which ports are occupied.


Reza
hiteshkumar ubharani
Greenhorn

Joined: Dec 15, 2006
Posts: 3
but the question still remains, how to address different port for initializing socket, as my port 900 is occupied.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You could read the documentation ... all the command line options for tnameserv are listed there. (Including one that lets you specify the port...)


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
wood burning stoves
 
subject: problem opening port 900 on mac os x