Connection has timed out when trying to access spring boot app from another machine - spring

I'm trying to deploy a spring boot app which will be usable in a LAN. I'm running the command mvn spring-boot:run, the application is launched perfectly, i can access it via localhost but not via other machines : The page loads until the error : The connection has timed out appears .
ANy recommendations ?

It is not accessible because the port in which your application is running is not exposed to the other machines. You can open firewall port to access it across the network.
The best approach is to setup either Apache httpd or nginx as fron't server to server your application on regular ports(80 and 443).

Related

unable to access spring boot application deployed in centos 9 server : request time out

My application was developed in Spring Boot, MySql. My server is running on CentOS 9 Stream. port 8080 is ocupied by Jenkins. So I have deployed it in a different port 8081. But my problem is when I am trying to access the API from the postman, it is taking a long time and at last showing message request time out.
How I can resolve it?
I am also facing the same issue in the time when trying to access the MySQL from DBear, it is taking a long time to connect and after that telling that request time out.
After searching in the i think the issue is with the port availability from the server. Guide me so that when I will deploy an application it will be available. I am also Apache web server.
maybe you have some rules on 8181 port, to check all the policy on Linux firewall get all the rules of iptables in cent-OS by this command.
sudo iptables -S

Client application and Signoz on different Windows server

When Signoz is running locally via Docker with the client application in the same server, everything is working. However, if I configure the same application on another Windows server, I got connection timed out exception. There's no firewall issue as if I host another dummy application on port 4317, the other server can access the resource.
Please help

Getting Tomcat 7 to work on remote CentOS 7.5

I am trying to run a website (WAR-file)on a remote CentOS 7.5 VM.
I have access to this VM through ssh connection with putty and am able to remote view desktop. The current problem is that even though Tomcat can start, when trying to wget or via browser to view the website a "Connection refused" is returned. I have checked that I request from the right ports and Tomcat does not throw an exception on startup that no port could be opened.
Has it something to do with firewall, which might be preventing access to the port.
Or you might want to map the exposed tomcat port to an external port.

cloudfoundry NoHostAvailableException while deploying app

I have deplyed my local cloudfoundry instance. When I try to deploy my application , my app requires cassandra to be up and running. I have cassandra host setup on independant server. Cloud foundry throws com.datastax.driver.core.exceptions.NoHostAvailableException
Whereas when I try to ping this host from the machine on which CF is installed , Ping is successful. Even this cassandra host is accessible from my local computer and works fine with my eclipse deployment.
How can I make cloudfoundry recognize this host?
You will need to make sure that (a) your application has access to the information about the address and credentials to access the cassandra server, and that (b) networking (and maybe DNS) are such that your application instances will actually be able to reach the cassandra server.
For (a), you will want to bind your application to a "user-provided service instance". For (b), you need to make sure your application's running security groups allow it to reach your cassandra server.

setup tomcat personal webserver

i hosted an apache server by changing few details in the httpd.conf file, used this tutorial. i also did port forwarding so that the server is able to respond behind the wireless router (firewall), it worked completely fine ( i checked by typing the ip and port number from some other host outside the network). now i am trying to run servlets for which i need tomcat server. i have installed tomcat but i am unable to access the server from another host that is not on the same network. could somebody please guide as to how can i achieve this.
I guess I would go with The Apache-Tomcat Connector and use it to connect your new tomcat instance to your Apache.
I did the same thing just as I for apache server, except that I changed the listening port to something else. added that entry in the router. incorporated tomcat in eclipse and then started the sample project. using whatismyip.com, i got the ip address. i could access my webserver from elsewhere...

Resources