Jump to content
xisto Community
lisha

View Php In Another Server

Recommended Posts

You might be able to do this without much trouble, but if that method does not work, you will probably have a lot problems getting it to work.

 

I am guessing that you have a dynamic IP address and a router? If I am right, access your router configuration - it is probably located at 192.168.1.1. What you will need to do is forward some random port to your computer, in order for other people to be able to access it. It is best to forward some rarely used port, such as 8342 :rolleyes: If everything is done properly, your computer should be available through http://forums.xisto.com/no_longer_exists/. If it is, I am afraid there is nothing I can do - my server works just fine that way.

Share this post


Link to post
Share on other sites

also, make sure you have your firewall configured to allow access to your computer on port 80.The easiest way to find your IP address is to open Command Prompt (i.e. Start > Run > cmd > Enter) and type in 'ipconfig' (without quotes) and hit enter. This will display your current IP address. You should then be able to enter that into any other computer on your network, if that wont load your page, try the port forwarding for your router/modem as pyost suggested.If that fails to help, check you have basic communication by pinging the server. If this doesn't work - you have a basic communication problem which you have to solve first!Good Luck!

Share this post


Link to post
Share on other sites

Actually, if your computer is connected to the Internet behind router.The only way to connect to your computer from outside world was port-forwarding.After configured it. You may download a copy of utorrent.It is used only for test case as it provides a test port function it will tell you the connection work or not.

Share this post


Link to post
Share on other sites

Also something else make other people unable to connect.
usually, in your Apache settings, when you automatically install XAMPP, in the httpd.conf file, the Listen instruction is a line like :
Listen 127.0.0.1:80
That means that Apache will listen only on your localhost (The one attached to your keyboard).
This means that even other computers on your network will not be able to reach php program.
I would replace the Listen line by two other lines. Let's suppose that your computer local network name is "mylovedcomputer",
I would replace the Listen 127... line by the two following ones :

Listen 127.0.0.1:8080Listen mylovedcomputer:80
This means that your php program will be reached internally at the address localhost:8080 (instead of the default 80 port) and your Apache will listen the other computers from your home network at the adress mylovedcomputer:80

Share this post


Link to post
Share on other sites
How to do port forwardingView Php In Another Server

In the address bar of your internet browser, type in 192.168.1.1.  It should ask for a password, if you don't know it, look up the default password for your router.  Mine is no username and the password as admin.

There should be a link that looks like Applications & Gaming or like make a new server connection or even Port Forwarding.

Once you are there, enable a port, open ports 20 and 50000 (or whatever your server requires), and have those ports forward to a number that you will find out in this next step.

start -> Run... -> "cmd" -> OK -> "ipconfig"

One ip address that shows up should be 192.168.1.XXX.  That XXX number is what you need for the IP address that the port will forward to in the previous step.

Now for other people to view your site, they need to type in your IP address in their address bar.  You can go to ipchicken.Com to get your IP address.

Note: some IP addresses change (including the XXX number and the ipchicken number).

-reply by Ben Maerkle

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.