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
Related
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!!!
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.
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.
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.
I started a Grails app listening to the default port 8080, as well as running grails as root to listen at port 80:
#grails -Dserver.port=80 run-app
This works perfectly well on localhost, but when I access it from an external IP address, it just fails to work. Just to be sure, I have Apache running on the same server and I can access it perfectly fine over the Internet.
Is there some configuration option I am missing here to ask Grails to listen on all IP addresses?
I even tried this but to no avail:
#grails -Dserver.host=0.0.0.0 -Dserver.port=80 run-app
I am using Grails 1.4.0M1 on Ubuntu 10.04 on an EC2 instance.
Thanks in advance.
Hanxue
If you really want to run it with run-app, the enter your servers IP address in your command-line, like this:
#grails -Dserver.host=xx.xx.xx.xx -Dserver.port=80 run-app
But you will probably find that you get a conflict with your Apache server running on the same IP.
I think you should look into using mod_proxy and mod_proxy_apj to "hide" your grails server beghind your Apache server
As cjstehno noted, in production you should run the app as a war deployed to an AppServer (Tomcat, TCServer, etc) And ideally have that running behind a WebServer (Apache) to route traffic.
See --> http://grails.org/doc/latest/guide/17.%20Deployment.html
if you are on ec2, make sure that the firewall has port 80 opened up to the world (or whatever ip you are connecting from). this is not the default and trips up many first time users of ec2.