Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Is that allowed or possible to have 2 machines set with the same hostname.

Hi.

When we configuring JTS server, we are asked to provide "Fully Qualified Hostname" as the public URI root.

I was wondering whether it's possible to name two machines with the same hostname in the same intranet?
Would it cause any potential problems when running JTS from the two machines at the same time?

Whether any network configuration could achieve above?

Your insight thoughts would be highly appreciated.
Thanks and Regards

0 votes


Accepted answer

Permanent link
Jin,

you can't have that. However, you can use a "Reverse Proxy". See https://jazz.net/wiki/bin/view/Deployment/InstallProxyServers

The proxy server is reachable under the common public URI and forwards the calls to the other machines based on the URL. E.g. forwards the call to the CCM application using the /ccm bit of the URL. The applications can have all the same public URI root without knowing they are on different hosts.
Jin Zhou selected this answer as the correct answer

1 vote

Comments

If you want to use the same host name in a network (e.g. for upgrade testing), you have to shield them from each other. You can set up an isolated network of a few machines, by manipulating the hosts file of all of the machines. You essentially overwrite the DNS and put in IP addresses in the host file to make sure the correct machines are reached. You have to be very careful if you do that, in order to avoid Linking the wrong applications.

1 vote

Thanks, Ralph

"Reverse Proxy" idea looks cool. I'll take time to review the articles that you shared.

Regards

Jin,

just to make sure, because I might have misunderstood the initial question. The Reverse Proxy is used to allow to make the public URI independent from the host names the applications are running on. It is not meant to help with running two installations with the same host names in parallel.

Hi, Ralph

Can I continually ask for your advice and thoughts?

What we hope to achieve is, we would setup 2 JTS server separately and running at the same time in the same intranet.
We want client1 to connect with JTS1 and client2 connecting with JTS2. Besides the access URL for client1 and client2 are supposed to be the same (client1 and client2 won't release they are connecting to different server)

Do you still think "Reverse Proxy" is helpful to above? How can we redirect the request from client1 and client2 to a specific JTS server with one proxy server?

Thanks and Regards

I would strongly advise not to try that. For use cases like upgrade testing, using entries in the hosts file has been used. The reverse proxy can not help with the scenario you describe, because it relies on different URL infixes to identify where to forward.

Other than for upgrade testing and isolating both environments it is not supported, nor a good idea to try what you describe.

What is the real use case? Why do you want to try that?


Hi, Ralph

I understand your point here.

We are still in the planning stage. Your advice would be helpful to us to decide.

Thanks and Regards

showing 5 of 6 show 1 more comments

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,020
× 7,497

Question asked: Jul 27 '14, 11:09 p.m.

Question was seen: 4,364 times

Last updated: Jul 29 '14, 12:42 a.m.

Confirmation Cancel Confirm