Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem opening port 900 on mac os x

 
hiteshkumar ubharani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I'd say your professor is right.
[ February 05, 2007: Message edited by: Ulf Dittmer ]
 
hiteshkumar ubharani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found the command its netstat again for mac, but still wondering what next
 
Reza Rav.
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
netstat tells you which ports are occupied.
 
hiteshkumar ubharani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but the question still remains, how to address different port for initializing socket, as my port 900 is occupied.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could read the documentation ... all the command line options for tnameserv are listed there. (Including one that lets you specify the port...)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic