Connecting a database over lan

Discussion in 'Programming' started by sydmeeran, Mar 31, 2009.

  1. #1
    Hi,
    I have three computers connected via lan and I would like to access web applications over the LAN. More specifically, I have a web application running on Tomcat, and I normally access the application by typing http://localhost:8080/ into my browser.

    Now I would like to be able to access the same app from my other computer over the LAN.

    Front end : JAVA
    Back-end : MS SQL


    Any help would be greatly appreciated. Thank you.
     
    sydmeeran, Mar 31, 2009 IP
  2. iam.xavier

    iam.xavier Well-Known Member

    Messages:
    521
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Use the server's name on it..

    Like if your localhost pc has name like ( "xakpc" ) ... Then over other LAN pc.. use http://xakpc/ ...
     
    iam.xavier, Mar 31, 2009 IP
  3. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #3
    You may also use the local LAN Ip address, E.g. if it is 192.168.0.2 then you can use http://192.168.0.2:8080/ on other computers on the LAN.
     
    MayurGondaliya, Apr 1, 2009 IP
  4. nirajkum

    nirajkum Active Member

    Messages:
    815
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #4
    better you give name to the machine and access it so that you dont have to remember IP address
     
    nirajkum, Apr 1, 2009 IP