0

I am running an application developed by me on my local system with IP (eg - http://192.168.0.126/career_app/name/controller_name/method_name/).

When I am accessing the same on my system, the output is as desired!!

But when I switch to my laptop connected onto the same network and access the application using the same IP (eg - http://192.168.0.126/career_app/name/controller_name/method_name/) - The same application acts all weird, wrong redirections and wrong flash messages start appearing on the screen.

halfer
  • 19,824
  • 17
  • 99
  • 186
Hithesh
  • 3
  • 4
  • What wrong message is displayed ?? – Bugfixer Jan 27 '16 at 09:06
  • 1
    I'd check if some resources within the application aren't configured to use localhost instead. – Narf Jan 27 '16 at 09:08
  • check your config.php for the entry `$config['base_url']`, if its using `localhost`, change it to the IP address – Sanchit Jan 27 '16 at 09:44
  • @Bugfixer - No wrong message is being displayed, But the redirection that had to happen to page A is now redirecting to page B. No code has been changed from the time it was working fine and it is still working fine on the system i used for development! – Hithesh Jan 27 '16 at 10:06
  • @Sanchit - All the changes are done well before i encountered this. the $config is **$config['base_url'] = 'http://192.168.0.126/career_portal/hithesh/';** – Hithesh Jan 27 '16 at 10:09
  • So thats where you are wrong I guess, according to your question it should be `http://192.168.0.126/career_app/` and you are using `http://192.168.0.126/career_portal/hithesh/` – Sanchit Jan 27 '16 at 10:32
  • @sanchit - No , lol. Im sorry the application name is career_portal and I am using the same. I just made it simpler for you guys to answer . Im still not able to come out with the solution. All these minor errors have been looked into and already corrected! – Hithesh Jan 27 '16 at 10:49
  • When you open the Browser Inspector, do you see any error in the console? If yes, show us the error. – Sanchit Jan 27 '16 at 10:52
  • @sanchit - They are no errors on the console either.! – Hithesh Jan 27 '16 at 11:22
  • @sanchit - I have also been using **.htaccess** as well. I dont know what else i should do to get this project up and running. – Hithesh Jan 27 '16 at 11:36
  • when you calling a method AA from controller A your page is redirected to other controller B method BB. Is this right ? – Bugfixer Jan 27 '16 at 12:56
  • @bugfixer - No . it is actually redirecting to the same controller and method again and the fields that we input becomes empty after the button click. But the db is being updated continuously – Hithesh Jan 27 '16 at 13:06
  • using form helper ? with echo form_open('A/AB') – Bugfixer Jan 27 '16 at 13:10
  • @Bugfixer - No I Am not using any form helper. I am using Email Helper class though - Codeigniter – Hithesh Jan 27 '16 at 13:15
  • db updated with correct same values which u filled in form. – Bugfixer Jan 27 '16 at 13:19
  • @Bugfixer: yes all such errors are already looked into.! – Hithesh Jan 27 '16 at 13:33

0 Answers0