1

For example, I have a website made for my manager. He needs to view the website and interact with it easily. He needs to view to all the Policies of the Website that I have uploaded and interact it in order to make further changes to it using his own computer. How do you do this and how is it possible.

I am using XAMPP (localhost to view all my websites) How can the other user view my website without having to install XAMPP in his computer? Is it possible for MySQL to be shared with another computer ?

ShahF
  • 183
  • 1
  • 1
  • 10

4 Answers4

2

There are a lot of services providing what you ask. The services create a tunnel to your localhost in order to allow other people to access it.

Some examples:

I've heard that if you’re just getting started, You should use ngrok. Client set up is the easiest and it offers the most features of any of the options and its completely free.

Kristof Feys
  • 1,822
  • 1
  • 19
  • 36
2

There are several ways to solve your problem.

You can provide access to your local machine. Therefore you have to check your firewall settings and normally open port 80 or 8080. Then you have to decide:

  • When the second person is in the same local network, you normally only have to share your local IP. To find out your local IP as a windows user, you have to open the command shell and type ipconfig. (Pay attention: in complex network structures this is not always the trick. Perhaps you have to contact your local admin.)
  • When the second person is not in the same network, you can configure a portforwarding on your router. To share your public IP you could use an additional DYNDNS-Service (dyndns) or just spread the ip yourself (whatismyip). I would not recommend that solution for a long time and you should only provide temporary access to a local service in your network.

You can also use a tunnel to offer a local service. For example:

Another solution would be to use a public webhoster. It's an affordable solution and you don't have to worry about any local issues. If you often want to offer your service or even run it 24/7, i would prefer this solution.

For experienced users there is also the possibility by bypassing the service with a reverse ssh portforwarding. For additional information i would recommend following blog-post: toic.org - reverse-ssh-port-forwarding.

knx
  • 398
  • 3
  • 21
2

just download visual studio code and once you do then go to extensions and install live server so then once you are done coding your website or app the just hit the go live button.

0

you can simply replace 127.0.0.1 or localhost with your IP address in the url ( assuming that you are both in the same office network ). e.g. replace localhost/project/index.php with yourip/project/index.php

if on windows just type ipconfig in your command prompt or try ifconfig on mac or linux to find out your ip.

adamS
  • 592
  • 8
  • 14
  • It works for me however I take you point, it will only work if all the conditions are right. – adamS Dec 20 '13 at 11:12
  • I just opened Port 80 in Firewall and allowed all access what should I do now? Yes i am in an Office network. – ShahF Dec 20 '13 at 11:47
  • find out your local IP address and try it out in your browser. – adamS Dec 20 '13 at 11:51