Application is working perfectly fine on localhost. But I'm trying to access my wamp server through Lan on some other machine, I can successfully see the page but when ever i try to click on any link it replaces the IP address with localhost, due to which can access.
Zurmo CRM: Accessing Wamp server from remote machine through Lan
233 views Asked by Awn Ali At
2
There are 2 answers
2
On
Your problem is not related to wamp. Your network config is correct. Probably the problem is your links path. Try to use correct path with Yii::app()->baseUrl
. Try to use this at the beginning of every link. This can be an example for link path:
<a href="<?php echo Yii::app()->baseUrl. '/controller/action' ?>">Test</a>
I got it working by following step:
There is a file in app\protected\config with name perInstance.php $instanceConfig['components']['request']['hostInfo'] = 'http://localhost:port';
change the localhost to your static IP.