|
|||||||
| Java (NOT JavaScript!) For discussion of the Java programming language as it applies to the Web ( Not JavaScript ). |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.. |
|
#2
|
|||
|
|||
|
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.
Last edited by JavaServlet; 10-31-2009 at 04:37 PM. |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
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. Last edited by JavaServlet; 11-01-2009 at 01:03 PM. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
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? |
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
Did you forward port 8080 or just port 80 in your router settings?
|
|
#11
|
|||
|
|||
|
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.
|
|
#13
|
|||
|
|||
|
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?
|
|
#14
|
|||
|
|||
|
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 |
|
#15
|
|||
|
|||
|
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.
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|