0

Is it even possible to check if port is open and reachable to others?

Right now I'm using to check if my listener is reachable by using canyouseeme.org by simply entering port number.

What I want to know is it possible to make my application to detect if port is reachable to others, not using local ip.

anothernode
  • 5,100
  • 13
  • 43
  • 62
Gaxt
  • 45
  • 2
  • 10

1 Answers1

0

Yes of course, you can use a library like NETTY or you can check previously answered topic Sockets: Discover port availability using Java

  • This should be a duplication not an answer tbh :) – Ben Jun 13 '18 at 08:05
  • Sorry not sure how to mark it as a duplicate, i will look up how for next time. –  Jun 13 '18 at 08:07
  • No problem. You simply click the "flag" button under the question and everything from there should be self-explanatory. – Ben Jun 13 '18 at 08:08
  • Not sure if this works the same way as canyouseeme.org. It does check if port is available, this is ok I need this. But does it check is port reachable for others as well ? other computers etc. – Gaxt Jun 13 '18 at 10:34
  • @Gaxt honestly, I would advice you to use a library like netty, it has exactly what you want to do. –  Jun 13 '18 at 15:37