Score:0

Multiple application on single PC

id flag

I have installed Tomcat server on my server PC with IP 127.0.0.1 One application is running on the server. Let address of the application is: 127.0.0.1:8080/first-project Now if I want to run another application on the same server, address will be: 127.0.0.1:8080/second-project

I want multiple application with multiple addresses like 127.0.0.1, 127.0.0.2

a) Is this possible to have multiple address on single PC?

b) What is the best practice for running multiple server on same server?

  1. With different IP address (127.0.0.1, 127.0.0.2)
  2. With same IP address but different port (127.0.0.1:8080, 127.0.0.1:8081)
  3. With same IP different path (127.0.0.1/first, 127.0.0.1/second)
in flag
Since this is obviously a development setup (which is off topic here) this is up to your preference.
Score:1
us flag

Is this possible to have multiple address on single PC?

You can use the whole 127.0.0.0/8 network locally.
This means all addresses from 127.0.0.1 to 127.255.255.254 are at your disposal.

What is the best practice for running multiple server on same server?

  1. With different IP address (127.0.0.1, 127.0.0.2)
  2. With same IP address but different port (127.0.0.1:8080, 127.0.0.1:8081)
  3. With same IP different path (127.0.0.1/first, 127.0.0.1/second)

Any of these is valid, it totally depends on application architecture/design.
The address would not be accessible remotely anyway, so it's up to you

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.