Access localhost web application in network - java

I have deployed a web application in Apache tomcat server. Now I can use application in http://localhost:port_Number/appName.
I want to access appName from another computer which is connected in LAN.
I can see references involving WAMP, but I am simply using Apache tomcat.

First, you need to know your IP address of your server in your LAN. So you can access your server app like
http://192.168.1.100:8080/appName
Where 192.168.1.100 is your IP and "8080" is Tomcat Server port. After this, you have to check, if your Tomcat Server is listening to your LAN IP.

Related

Unable to access tomcat server on 8080 port from Google Compute Engine VM (Windows Server 2012)

I have created Virtual Machine Under Google Compute Engine and selected Windows Server 2012 R2 as OS for the server. I have installed Tomcat 8 and and it is running on 8080 HTTP port. I can access locally tomcat on browser using internal IP and localhost. But I can not able to access tomcat using external IP from my local computer.
Please help me if possible. My tomcat server configuration file of tomcat is below.
There are two common issues for this:
You need to open port 8080 on GCE's firewall in order for it to be accessible from outside GCE.
It is possible that Tomcat is only listening on the localhost. You might need to set the HTTP Connector address attribute to 0.0.0.0 so that Tomcat listens on all addresses.

call localhost web services --> connection refused

I have the problem. Let me describe the situation first.
I have setup the weblogic cluster in two machines on linux OS.
I have deployed the web application and web services on them.
In the web application, it will call "http://localhost:7201/BusinessLogic/services/AccountService?wsdl" web service. But it said connection refused in the log.
But if I change localhost to be ip address of one weblogic machine IP, it is working. e.g. "http://192.168.0.30:7201/BusinessLogic/services/AccountService?wsdl" where 192.168.0.30 is one of ip address of web application machine.
I have checked /etc/hosts, it has mapping 127.0.0.1 localhost.
I checked in my computer to use postman to call web service "http://192.168.0.30:7201/BusinessLogic/services/AccountService?wsdl", it is working. Of course, I cannot test localhost in my computer.
I also think is there a way to check localhost web service on linux machine. is there a way??
Where is the problem??
Please help!!!

Connecting to my own router via android

I work with a Tomcat server. The Tomcat server has its own remote IP. I do tests on it in my eclipse, using a local Tomcat and the local IP of 192.168.1.x. I can do tests on it via Genymotion or my browser. But my android phone doesn't know this IP, even if it sits on the router that my computer is connected to. How can my device know my local Tomcat server?
Check that your firewall is not blocking connections to the tomcat server

java: deploying web service on static IP and accessing from outside network

I have designed a REST Web Service in java and I'm running it locally on Apache Tomcat server.
Now I want to access the web service from outside my network. I have a static IP address.
How do I access it from another network?
after having chat with you, i can suggest following.
check if your network/firewall have port 8080 open. if not make it
open for communication.
try doing telnet to that IP with the port 8080 to check if that port is open
for connection to that machine, if not contact to your network
operator.
it seems connection problem to me more than service related issue.

Can't open web application made with Java EE on other local computers

I am trying to look the web application I made with Java EE. The server and database is up and running. It works on localhost:8080, but when I replace localhost with the local IP address all I get is a 404 error. Do I need to configure something?
On windows 7 open the firewall to allow incoming and outgoing traffic on port 8080. Then from the remote machine make sure that you can ping the server's ip address and then try to browse to the address.

Categories

Resources