rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: dane on June 22, 2008, 01:16:38 AM

Title: how to put HFS on 2 PC's behind one router
Post by: dane on June 22, 2008, 01:16:38 AM
First: HFS ROCKS!

If I have HFS running on one PC, is there a way to have it on a second PC that is on the same IP address?
In other words. Can I have HFS running on two machines behind one IP address?
Title: Re: how to put HFS on 2 PC's behind one router
Post by: bacter on June 22, 2008, 02:21:39 AM
you can have the same IP, but you must use different ports, the same if you run more than one instance of hfs on one PC.
Title: Re: how to put HFS on 2 PC's behind one router
Post by: dane on June 22, 2008, 01:51:37 PM
.
Yes thank you.  But...
I guess the question should have been: How do you configure two HFS behind one IP address using different DynDNS host names?
I have my second HFS on a second PC with a different port selected.
I have both machines set up with a different static IP address.
In my router I have each PC's HFS port forwarded to that PC's static IP address.
I have a second host name set up with DynDNS.
I have the apropriate host name selected in the DynDNS Updater configuration on each PC.
An HFS self test on the second PC shows successful.
Connecting to it from an outside source using the numerical IP address in the HFS address bar also works fine.
But when the second host name set up at DynDNS is used from an outside source, it takes you to the first HFS in the first PC, not the second.

I scoured the DynDNS site knowledge base and finally found the answer.
I will put it here for others who have the same problem.

After you have set your static ports in your PCs,
and forwarded them in your router,
and set the new port in HFS,
and configured your DynDNS Updater,
Login at DynDNS.
Select the Hostname you want changed.
Change your Service Type to WebHop Redirect.
Copy and past the URL of the second HFS, which includes the alternate port, into the next box down.
And Save Changes.
.
Title: Re: how to put HFS on 2 PC's behind one router
Post by: rejetto on June 23, 2008, 07:42:07 AM
thank you for sharing your solution dane!
anyway, in this uncommon case, the self test was not telling the truth.
the test on second PC was reporting OK, but it was actually the first PC to answer the test.
the self test at this stage is not able to distinguish 2 working servers.
he just check if an HFS is answering, doesn't check if it is the right one.
fortunately in the real world few people run multiple instances, so an improvement this way is not very urgent in my opinion.
it's in the to-do list anyway.