Author Topic: how to put HFS on 2 PC's behind one router  (Read 2415 times)

0 Members and 1 Guest are viewing this topic.

Offline dane

  • Occasional poster
  • *
  • Posts: 6
    • View Profile
how to put HFS on 2 PC's behind one router
« on: June 21, 2008, 07:16:38 PM »
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?
« Last Edit: June 21, 2008, 07:18:41 PM by dane »

Offline bacter

  • Operator
  • Insane poster
  • *****
  • Posts: 682
    • View Profile
Re: how to put HFS on 2 PC's behind one router
« Reply #1 on: June 21, 2008, 08:21:39 PM »
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.
your computer has no brain - use your own !

Offline dane

  • Occasional poster
  • *
  • Posts: 6
    • View Profile
Re: how to put HFS on 2 PC's behind one router
« Reply #2 on: June 22, 2008, 07:51:37 AM »
.
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.
.
« Last Edit: June 27, 2008, 09:25:43 AM by dane »

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12832
  • Country: it
    • View Profile
Re: how to put HFS on 2 PC's behind one router
« Reply #3 on: June 23, 2008, 01: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.