Weird issue with Tomcat and localhost - spring-mvc

So this is the issue. I have a spring mvc application. When I start the application in Intellij, tomcat starts(http://localhost:8080/home) but I eventually get a message that the site cannot be reached. The ip address(192.168.251.49) its trying resolve is not my localhost. If I use my localhost ip(192.168.2.19) it works, but I get an notification that the site is not secure. This started last week, I was working from home, so I was connected to work via a VPN, and I was remoting into my work pc. Then on my home pc I had started up this app, then after closing my connection to work this problem started happening.
Any suggestions on how to fix this? Thanks.

Related

Nginx status is failed so how to make nginx up and running

I have project developed in Node + react combination. We have deployed it on aws. But from last some days site stopped working. I have checked domain but i didnt find any issue with domain. Actully when I checked with terminal I noticed that I didnt receive any request from client side when I hit the website from browser.
So I checked with nginx status but its showing me failed. I have attached image which shows nginx status. Can anyone tell me how I can make nginx up and running again. I am completely new to handling server things. So I dont have that much knowledge about it. Thanks in advance

I can't reach a particular local web app that is running on IIS

I have a web app that used to run on IIS at http://localhost:3878/Admin; however now for some reason I get this error when I try to access it in a browser:
This site can’t be reached
The connection was reset.
Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESET
Why would I be getting this error all of a sudden when the app worked earlier today? I checked in IIS to make sure the app is started. The IIS logs are not showing any requests to this app. Event Viewer shows a compile error related to this app (I tried to access an include aspx page directly from the browser; I want to fix that issue with the web app where it's displaying the source code from the aspx pages that are used in #include statements) but that shouldn't take the app down once and for all should it?
If someone else face ERR_CONNECTION_RESET with http. Then you could try https first. If https binding fix the problem. It would help narrow down the root cause.
You may need to check whether require https has been enabled or mistake. In some case, enable https or HSTS in project will cause ERR_CONNECTION_RESET.
Of course, enable https would be considered as a workaround.

ASP.NET MVC 5 - Access localhost from phone/PC in same network

I am building an ASP.NET MVC 5 application and I run the server locally and it works fine, but I can't seem to connect to it from an external device.
The URL is localhost:60884 . I navigate with my phone to <internal_IP_address>:60884 and I get a ERR_CONNECTION_TIMED_OUT error.
I have disabled the firewall and I have tried to connect the PC on my phone's WiFi HotSpot, but no success.
Can someone tell me how to solve this?
You should be able to do this by setting it up in project properties. In Visual Studio if you go into the Web tab on the right, there'll be a Start URL you can choose
Whatever address you put in there you should be able to navigate to on your phone, provided you're on the same network. You are likely getting the timeout error because your device can't connect to the server's address at all.
Hope that helps!

ASP.NET Connection Refused

I have a ASP.NET C# Website, The website working on my friends pc (I made it there), but on my pc I get this error :
No connection could be made because the target machine actively refused it 127.0.0.1:50160
I tried to disable the firewall but it didn't help.
I think that the problem can be fixed from the Web.config file, but I don't know how to fix it.
Any help ?

Unable to access my published web page from other computers

I have published ASP.NET web site, using IIS7 on Win7. I can access this web site on my localhost, but it is inaccessable from other computers via internet. I have tried to disable firewall and anti-virus program, but with no success.
Does anyone know what may be causing this problem?
It works fine if I publish it on winXP.
Try checking out your router settings for port 80 forwarding;
Check out information about your internet provider as well;
There are providers that block port 80 outgoing traffic.
Try checking to see if the website is actually bound to 127.0.0.1. If it is, it would work for you but no one else.
Try to hit the website from a different computer on the internal network. If you can't hit it internally, then it is an issue with the local configuration on the webserver. If you can hit it internally, but can't hit it externally, then there is some kind of routing issue from the outside.
Its likely a routing issue from the outside, so think about these steps:
External DNS
Proper NAT/Firewall settings
Try using telnet to connect to the website and see if you get a response
Use tracert from the outside to see where the traffic is failing (if its failing)
Check the security settings on the deployed folder and check "Everyone" has read access. If you've not deployed under wwwroot they may not

Resources