rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: sameer on November 04, 2008, 05:21:32 AM

Title: how to open 2 hfs program in 2 lan cards
Post by: sameer on November 04, 2008, 05:21:32 AM
hello
i have computer inn my network  its work in 2 defernt host
like 1- acoounting  2- users
and i have 2 lan card
i want to start 2 hfs in this 2 lan card and all of my users CAN SEE ONLY HFS FOR THEM



SOREE ABUT MY ENGLISH

thanx to all
Title: Re: how to open 2 hfs program in 2 lan cards
Post by: rejetto on November 04, 2008, 11:23:34 AM
if you want to keep your 2 hfs separated, ok, ensure you are in "expert mode"
then you got to disable: menu -> start/exit -> only 1 instance

then you can start 2 instances, and use the "accept connections on" to bind them to different networks.
Title: Re: how to open 2 hfs program in 2 lan cards
Post by: sameer on November 05, 2008, 01:26:02 AM
thanx to u but sorry
i want to start 2 hfs program in 2 lan

if that can be
thanx im wating ur replay
Title: Re: how to open 2 hfs program in 2 lan cards
Post by: rejetto on November 05, 2008, 08:34:26 AM
what's missing in my previous reply?
Title: Re: how to open 2 hfs program in 2 lan cards
Post by: sameer on November 05, 2008, 08:57:20 AM
ok thanx its workng
i must chang the port
and do anther copy of hfs
thanx
Title: Re: how to open 2 hfs program in 2 lan cards
Post by: rejetto on November 05, 2008, 09:11:51 AM
ah, yes, you must change the port :)
about the "other copy", it's the easier solution. but remember to do "save options -> to file".
Title: Re: how to open 2 hfs program in 2 lan cards
Post by: Wasserfloh on November 05, 2008, 05:55:02 PM
ah, yes, you must change the port :)
Not when both servers bind to different IPs.
Title: Re: how to open 2 hfs program in 2 lan cards
Post by: rejetto on November 05, 2008, 11:16:09 PM
very correct Wasserfloh :)
thanks for rectifying
Title: Re: how to open 2 hfs program in 2 lan cards
Post by: MarkV on November 06, 2008, 09:36:54 PM
Most people confuse the words port and socket.

A socket can only occupied by one program at a time. A socket is the combination of IP and port, e.g. 192.168.0.1:80 is a socket.
A port can either be used on all IPs by one program (e.g. bind to 0.0.0.0:80), or up to the number of IP times by using bindings (see socket).

You can set additional IPs for your PC even if you only have one NIC.