Reputation: 9314
I've recently set up a new site that runs a database via MAMP. It's actually an expression engine site and I'm developing it at localhost:8888.
I was wondering if there's an easy way to share the site with someone else over the web (like a client) via my IP address while my local server is running.
Not sure if there are security issues with this, but it would be easier than deploying it to a testing server.
Upvotes: 0
Views: 336
Reputation: 2684
If you are behind a router, you'd need to forward incoming port 80
to your ip and locally port 8888
.
Make sure that apache is not only availabe from localhost (use your networkip: 8888
to test)
Open port 8888
in your firewall (not always required)
Give your ip to your friends
Upvotes: 1
Reputation: 77359
Depends on your router. Most SOHO routers have an option to use dyndns and forward trafic to an internal host. If your router have these features, then:
See your router manual.
Upvotes: 0
Reputation: 1
You need to open the port in your router (assuming you are behind a router) and firewall(s). Then you need to setup NAT to forward port 8888 to the IP address of the computer behind the router that is running your webserver.
Upvotes: 0
Reputation: 72230
This can get complicated because (I presume) you're on a router. You need to forward a specific port to your computer and give out your IP address. If you're not up to scratch with security, I'd be careful when doing this. You'll also need to configure your router to accept connections on that port (8888).
I do this all the time on my local network, but I always use a testing server when I need to show clients.
Upvotes: 1