Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosting site using xampp server from local network without port-forwarding

I want to make my site available world wide. Im using xampp server for hosting. I have no access to any kind of servers and modems. Situation is shown below:

My site server has local ip assigned by wifi router and it runs Windows 8.

Remember I have no access on any kind of servers and modems so port port-forwarding is impossible (out of my scope).

like image 588
rickj Avatar asked Aug 20 '13 15:08

rickj


People also ask

Do I need to port forward for local network?

Port forwarding, or port mapping, allows remote servers and devices on the internet to access the devices that are within your private local-area network (LAN) and vice versa. Without port forwarding, only devices that are part of the internal network can access each other, and with port forwarding, anyone can.


1 Answers

Its actually difficult, but not impossible.

One way, I would approach this is:

  1. I would host a page on internet.

  2. Then take request and store it in database.

  3. One of my program will always be running from my computer.

  4. Then check for request and curl the request to localhost. For this you may use Node.js (taking data from database using GET method and curl it to localhost).

This is the best I could think of. And I am working on it, when the code is ready I'll make it open source and notify you :)

But still, it's difficult, as you need to put user's request to sleep for 2 seconds and then transferring it. Its slow, but may work out for you.

Disadvantages:

  • Program will be very slow and memory usage will be more.

  • Breaking may happen many times.

  • High bandwidth wastage

  • If not encrypted, MIM (Men in Middle) may possible.

Advantages:

  • Indirect method of hosting

  • Need not to worry about your code being lost.

I am looking forward for a better alternative and I would like to keep this question for bounty once again.

like image 59
Johny Pie Avatar answered Oct 18 '22 14:10

Johny Pie