I'm using Apache Tomcat to locally host the web sites am designing but i want my friend to be able to access this web page from his home.
How can I make my laptop a server for my pages so that it can be viewed remotley using apache tomcat?
|
I'm using Apache Tomcat to locally host the web sites am designing but i want my friend to be able to access this web page from his home. How can I make my laptop a server for my pages so that it can be viewed remotley using apache tomcat? | |||||||||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
If you're only rarely running the web server and it's not for production purposes, then simply port-forwarding to your laptop is a safe bet. Just forward port 80 on to your laptop MAC address and set it to have a fixed IP address from your router's admin panel. Once you've done this, you can either give your friend your internet facing IP, or use a domain to point at your dynamic IP, e.g. No-IP. | |||||||
|
feedback
|
|
Without knowing some specifics, it's a bit of a "fishing expedition" at this point. What operating system do you have, are you using a firewall or router, are you running any security software, etc. If you are using a router / firewall then you need to make sure this device has port 80 opened and also forwarding to your local IP address. If you are on a Mac, make sure you have enabled Web Sharing in System Preferences > Sharing. You will also see your computers IP at this point, however, that's your local IP. If you are on Windows, make sure Windows Firewall is not blocking port 80. Your friend will need to go to your public IP which can be determined at WhatIsMyIP.com rather than your local IP address (usually 192.168*, 10.0.*, etc). | |||
feedback
|