The moose likes Sockets and Internet Protocols and the fly likes check a TCP port's state Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "check a TCP port Watch "check a TCP port New topic
Author

check a TCP port's state

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
is there an easy way to check if a port is occupied , like
public boolean isOccupied(int port) ; ?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
okay, i got it:
it's in java.net.SocketPermission !
seeee ya !
 
IntelliJ Java IDE
 
subject: check a TCP port's state
 
Threads others viewed
Not able to run EjbStateless Client
J2ee -verbose problem
Connecting PostgreSQL through JDBC
Unable to send mail through mail api
Which Portal to use
MyEclipse, The Clear Choice