I have a Netbeans project running on localhost with Tomcat and MySQL, all is well.
I now want to show my progress to someone in another part of the country.
How do I let him access my website outside of my network?
I have a Netbeans project running on localhost with Tomcat and MySQL, all is well.
I now want to show my progress to someone in another part of the country.
How do I let him access my website outside of my network?
You need to check the following, in roughly this order:
Firewall: Allow incoming connections on the required port.
Server: I've not used Tomcat, but you should ensure it is configured to allow connections from other IP addresses, it may be configured to only work locally.
At this point, it is worth testing that you've got this right by connecting to the LAN IP of this computer from another machine on the same LAN. Otherwise you risk spending a lot of effort messing around in the later steps to find this is blocking the entire process
http://<IPAddress>:<port>/
I'll assume that the website isnt live, because otherwise, well we wont get into that. Easiest way to show him your project is to have netbeans compile the latest working model, find the folder all the info is stored in, zip that puppy up, upload it to any one of a plethora of file hosting sites, and give him the link, if you want him to be able to fully test the site. when he gets the file, have him open up Websitename.htm(l) and he can literally browse it like its live.
if you just want him to be able to look at what you're doing, take a few screenshots and email them to him.
You need to do a number of things:
If you go down the DynDNS route they have their own SE site where we can give you lots of help in getting things working.
To avoid re-writing the entire thing, I'll direct you to this guide on the DynDNS community site.
The first part should be simple enough. Can you connect to the LAN IP of the Tomcat server, using a web browser?
Ngrok is designed specifically to do this with very little hassle.
Example:
ngrok http 8080
Creates a random, publicly accessible URL, that forwards requests to your localhost on port 8080.
Not sure if I need to state it, but I have no affiliation. Just love the software.