Studying an example of a web application in Java, the following question arose: how exactly to launch it. In this example , do not consider advertising, file transfer within the local network is implemented. The application is launched via the command:

java -cp . UploadServer <номер порта> 

In order to find out the port number, I typed the ipconfig command in the console:

ipconfig

but being, say, a novice in this matter, I understood here, alas, not much.

The question is how to correctly determine the port number of the server and what should be entered in the browser of the client in order for the program to work correctly?

  • one
    The list of open ports - the netstat -a or netstat -n -a command works faster, because -n disables the long function to determine the host name by its ip address. And web applications are done differently. And they also run in different ways. - Sergey
  • Thank you very much. I will try now with netstat .. - Dmitry08
  • The request is finally fully earned. Thanks again. - Dmitry08

0