problems in running java socket program in Linux
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Aravind_Kumar
Posted On:   Thursday, April 29, 2004 12:00 AM

Hi All i have written a simple java scoket program under windows, it worked perfectly. and i have tried the same program under linux ..it shows me this exception. [user1@agaperf1 Java_Perl_Comm]$ java ServerSock java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket. (ServerSocket.java:185) at java.net.ServerSocket. (ServerSocket.java:97) at ServerSock.main(ServerSock.java:10) Why this exception araised? gimme some solution to pr   More>>

Hi All
i have written a simple java scoket program under windows, it worked perfectly. and i have tried the same program under linux ..it shows me this exception.


			
				
[user1@agaperf1 Java_Perl_Comm]$ java ServerSock
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket. (ServerSocket.java:185)
at java.net.ServerSocket. (ServerSocket.java:97)
at ServerSock.main(ServerSock.java:10)



Why this exception araised? gimme some solution to proceed yet further

THanks in Advance
Aravind    <<Less

Re: problems in running java socket program in Linux

Posted By:   Simon_Ablett  
Posted On:   Thursday, April 29, 2004 06:03 AM

"public class BindException extends SocketException
Signals that an error occurred while attempting to bind a socket to a local address and port. Typically, the port is in use, or the requested local address could not be assigned."

Regards
About | Sitemap | Contact