Hi,
<div><br></div><div>I have the following code, </div><div><br></div><div><div> $sock = new IO::Socket::INET ( LocalHost => '0.0.0.0',</div><div> LocalPort => '80',</div>
<div> Proto => 'tcp',</div><div> Listen => 30,</div><div> Reuse => 1);</div><div><br></div></div><div>which will fail because my port 80 on localhost is used by web server. </div>
<div>How can I change the code to listen on the 2nd ip address? </div><div><br></div><div>I.e., my current IP address is 192.168.0.100, it is also accessible at 192.168.0.101. I want that visiting 192.168.0.100 will land to my normal web server, while visiting 192.168.0.101 will be handled by the code above. </div>
<div><br></div><div>Please help. </div><div><br></div><div>Thanks</div><div><br></div><div><br></div>