www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > Java
    (NOT JavaScript!)

    Java
    (NOT JavaScript!)
    For discussion of the Java programming language as it applies to the Web ( Not JavaScript ).

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 10-29-2009, 03:14 AM
    sher_amf sher_amf is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 60
    Post how to be able to access my localhost in the internet?

    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..
    Reply With Quote
      #2  
    Old 10-31-2009, 04:35 PM
    JavaServlet JavaServlet is offline
    Registered User
     
    Join Date: Jun 2009
    Posts: 74
    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.
    Reply With Quote
      #3  
    Old 10-31-2009, 08:11 PM
    sher_amf sher_amf is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 60
    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?
    Reply With Quote
      #4  
    Old 11-01-2009, 12:53 PM
    JavaServlet JavaServlet is offline
    Registered User
     
    Join Date: Jun 2009
    Posts: 74
    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.
    Reply With Quote
      #5  
    Old 11-03-2009, 06:51 AM
    sher_amf sher_amf is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 60
    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
    Reply With Quote
      #6  
    Old 11-03-2009, 08:11 AM
    criterion9 criterion9 is offline
    Registered User
     
    Join Date: Jan 2009
    Posts: 997
    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.
    Reply With Quote
      #7  
    Old 11-03-2009, 07:54 PM
    sher_amf sher_amf is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 60
    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?
    Reply With Quote
      #8  
    Old 11-04-2009, 06:01 AM
    sher_amf sher_amf is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 60
    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
    Reply With Quote
      #9  
    Old 11-04-2009, 08:10 AM
    criterion9 criterion9 is offline
    Registered User
     
    Join Date: Jan 2009
    Posts: 997
    Did you forward port 8080 or just port 80 in your router settings?
    Reply With Quote
      #10  
    Old 11-04-2009, 08:15 AM
    sher_amf sher_amf is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 60
    here take a look
    Reply With Quote
      #11  
    Old 11-04-2009, 08:17 AM
    criterion9 criterion9 is offline
    Registered User
     
    Join Date: Jan 2009
    Posts: 997
    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.
    Reply With Quote
      #12  
    Old 11-04-2009, 08:23 AM
    sher_amf sher_amf is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 60
    nothing happened i did this

    URL is (example external ip is 333.333.333.33)
    333.333.333.333:800/folder name
    Reply With Quote
      #13  
    Old 11-04-2009, 08:32 AM
    criterion9 criterion9 is offline
    Registered User
     
    Join Date: Jan 2009
    Posts: 997
    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?
    Reply With Quote
      #14  
    Old 11-04-2009, 08:42 AM
    sher_amf sher_amf is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 60
    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
    Reply With Quote
      #15  
    Old 11-04-2009, 09:14 AM
    criterion9 criterion9 is offline
    Registered User
     
    Join Date: Jan 2009
    Posts: 997
    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.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 07:08 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.