Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm fresher for ubuntu 12.04.., I just created a simple program called login.php and i would like to run this prog from anther PC that not in my LAN. I had localhost in my system., I'm using apache2.0 and php5. My program is located at var/www/login.php

When ever i'm trying to open it from others PC(not in my network) using IP it shoes OOPS.,

What can i do to open my page from another PC using IP address.

One thing i need to say, i.e., I already run my program in other systems those in my LAN., by using my IP like 192.168.xx.xx/login.php ., It works. But my question is what about from another systems that not in my LAN. Simply my requirement is to run my database from others PC through IP.. Is it possible. All of my friends said that it is not possible from outside of the LAN

share|improve this question
1  
this is a very poorly structured question. I think your having problems with networking and not with PHP or apache. Can you verify that you can "ping" the host machine? –  coteyr Nov 21 '12 at 11:30
    
thanks for your response. One thing i need to say, i.e., I already run my program in other systems those in my LAN., by using my IP like 192.168.xx.xx/login.php ., It works. But my question is what about from another systems that not in my LAN. Simply my requirement is to run my database from others PC through IP.. Is it possible. All of my friends said that it is not possible from outside of the LAN –  user109694 Nov 22 '12 at 9:41
1  
Enable port forwarding in your router so that your server takes and gives connections through port 80. From there, you use your external IP to access it from outside your network. –  Spice Nov 22 '12 at 9:47
add comment

1 Answer

You would need to set up your router to route http requests to your IP to your specific machine on the LAN.

The way this is done depends on your router make/model.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.