This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes General Computing and the fly likes How to define a URL to access a web application deployed on computer on LAN Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "How to define a URL to access a web application deployed on computer on LAN" Watch "How to define a URL to access a web application deployed on computer on LAN" New topic
Author

How to define a URL to access a web application deployed on computer on LAN

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
I have two computers (machine -1,machine-2) connected on LAN,Tomcat is running on machine-2 ,how the URL should be defined to access the web application deployed on machine-2 from machine -1

Please explain the URL also?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41151
    
  45
The format is the same that it always is: http://11.22.33.44:88/, where "11.22.33.44" is the IP address, and "88" is the port number (optional if it's 80). If the machine has a network name then you can use that instead of the IP address.

It doesn't matter from which machine you're trying to access the server - the URL is the same for all clients.


Ping & DNS - my free Android networking tools app
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40


Jacob,

You should really consider the subject when you post a topic -- this topic, and your other recent topic, have nothing to do with Java in General (beginners)... Moving...

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
 
subject: How to define a URL to access a web application deployed on computer on LAN
 
Similar Threads
Access Compute Name on windows XP
web application perfomance issue
Deployment of web application
Accessing EJB's remotely
How to access webservice on LAN