Click to See Complete Forum and Search --> : how to be able to access my localhost in the internet?
sher_amf
10-29-2009, 02:14 AM
I am currently using JSP, with resin with MySQL
is there a way that when my computer runs resin localhost my friend which is on the internet can access my localhost? like typing
http://192.168.0.109:8080/foldername/index.jsp?
because with using a router i have tried it, it is working..
JavaServlet
10-31-2009, 03:35 PM
Use the IP Address, or point a domain name at your IP. Forward your port through your router. Your firewall should block incoming requests and you'll have to configure it to allow access to certain ports. Be aware that allowing access will create security holes with alot of junk invading your server.
sher_amf
10-31-2009, 07:11 PM
how do i forward my port in my router?
for the example the IP of my computer is 192.168.0.105 how will others access that through the internet?
JavaServlet
11-01-2009, 11:53 AM
Don’t know what kind of router you have and there are many routers out there.
For a Linksys router, you need to log in to your router and get into the port range forward tab and then add web to your application field. You could use port 80. Set protocol to TCP and continue adding your server info such as ip address and more if needed. Other routers like SMC Barricade would use both TCP&UDP. Consult your router manual or router web site for more details if needed.
sher_amf
11-03-2009, 05:51 AM
okay this is what i have done in my router? how do i now access my localhost through the internet? what url will i type?
here is my current configuration
(http://i35.tinypic.com/2j1wri9.jpg)
criterion9
11-03-2009, 07:11 AM
Your url will be your external IP address unless you plan to buy a domain name and point it to your external IP. You can find out your external IP from your router or you can check here (http://www.whatismyip.com/).
sher_amf
11-03-2009, 06:54 PM
222.127.196.247
so for example my enternal IP from my router is
333.333.333.3333
i will input in my URL
333.333.333.333:8080/foldername?
sher_amf
11-04-2009, 05:01 AM
i have tried this
for ex. my external ip is 333.333.333 that is based on the site you gave me...
i have tried doing this
333.333.333.:8080/foldername
nothing happened
criterion9
11-04-2009, 07:10 AM
Did you forward port 8080 or just port 80 in your router settings?
sher_amf
11-04-2009, 07:15 AM
here take a look (http://tinypic.com/r/1es4gp/4)
criterion9
11-04-2009, 07:17 AM
Then the answer is no. You only forwarded port 80. Your server is listening on port 8080 based on your previous posts. Add port 8080 and try again.
sher_amf
11-04-2009, 07:23 AM
nothing happened i did this (http://i33.tinypic.com/zyj0vn.jpg)
URL is (example external ip is 333.333.333.33)
333.333.333.333:800/folder name
criterion9
11-04-2009, 07:32 AM
Is your server running? Do you need any additional ports? Are you using a firewall that might be blocking the connection? What do you mean by nothing happened? Did you get a message at all?
sher_amf
11-04-2009, 07:42 AM
i turned off firewall
yap server is already running
i went to another computer that is not connected to my router... i type in
333.333.333.333:8080/folder name nothing happened...timeout connection
criterion9
11-04-2009, 08:14 AM
When you start your server (assuming stand alone and not running as a service) what port combination does it say it is listening on? The examples from the resin website show 8380 and 6802 as the default on windows installs.
sher_amf
11-04-2009, 11:58 PM
the resin shows 8080
criterion9
11-05-2009, 09:43 AM
I'm not sure how to help you further. Its probably blocking the connection somehow (might even be at the ISP level or software/hardware firewall or router).
sher_amf
11-05-2009, 08:57 PM
hmmmm that is so sad... it was so near hehe thanks for the replies though!