Windows server not responding on port 8080 - http

I have setup tomcat7 on my new windows server 2012 r2 (default connector port 8080). I am able to run tomcat and access the dashboard by loading http://localhost:8080 in the server's browser.
However, I am losing hair trying to load this page over the web at http://xx.xx.xxx.xx:8080. The connection simply times out.
When I load http://xx.xx.xx.xx:80 which I read is open by default, it loads the default windows server page full of welcome text.
After some reading, I created inbound and outbound rules for opening TCP port 8080, firewall protection is turned off, I still see no change in results even after restarting tomcat server everytime.
When I run netstat -an on the server, this line is present:
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING
which I presume should mean that the machine is listening to inbound connections on port 8080 from all network interfaces.
Why on earth can't I access my tomcat dashboard over the web?

You need to add the inbound rule for TCP 8080 in Windows Firewall, and configure the rule to allow NAT Traversal.

Related

Http port 80 is not open but Port 8080 is opened and website not opening

I have redhat linux server GNU. The port 80 is not open there, and port 8080 is opened. Now i am trying to open a website. How to know which port apache using and if port 80 is not open can http://xxxx (website URL) work? As of now for me the website is not opening.And when i am typing this in the browser http://xxx the page is not loading and url showing is https://xxx
As I understand you want to know which port apache is using to deliver web content. You can use below commands to check the ports.
For a general check if an app is running you could just use
“ps aux | grep apache2” Or "ps aux | grep httpd" for redhat/centos.
lsof -i list open ports and the corresponding applications.
By default, HTTP uses port 80 and HTTPS uses port 443, but you can use a URL followed by opened port like http://www.example.com:8080/path/ which specifies that the web browser connects instead to port 8080 of the HTTP server.
If you have a secure socket layer certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your site for a secure connection.

Google Compute Engine - Can't reach external IP of instance

I'm running a Node app on a HTTP instance with Debian-8 and only can reach my app via port 8080 which my node server is running on. If I remove the port and try to access through port 80, then I get a refused to connect error.
I've allowed tcp:80 to all targets in Networking -> Firewall Rules and also verified that my iptables are open in Debian. Any ideas?
Resolved - My port forwarding was not set property in Debian.

How to access a URL with port with out disabling firewall

I have a server to which I connect using VPN. I have a deployed a site on this on IIS server. URL for the site is "http://localhost:8080/mysite". when I use this Url on server it is opening up.
But When I use its ip address Lets say http://172.x.x.x:8080/mysite it is not accessible. (not on the server not from my dev machine (Which uses VPN)).
But if I disable firewall on server then It is accessible using the IP and port 8080 also or if I change the port number of deployed site to 80 then also I can access it(without disabling firewall).
Is there any way so that I can use my port number 8080 and also don`t need to disable firewall on server.

Cannot access chef-server web interface. (No route to host)

I have got chef-server installed on a centos machine.
Everything is working as expected except that I cannot access the chef-server web interface from another machine on my local network.
I can access the web interface from the centos machine itself:
telnet mychefserver.local 4000
Connected
If I do the same from my machine I have got:
telnet: Unable to connect to remote host: No route to host
I can successfully ping mychefserver.local from my machine
Any idea how to configure nginx with chef-server to access the chef-server from the network?
Since Chef Server 10, the web interface uses normal HTTPS (TCP 443), it only listens on the high ports locally, and nginx proxies as needed to the different backend services. I would try with a normal web browser as telnet isn't exactly great at error messages. Normally I would expect that to mean telnet is getting TCP transmission errors, but maybe it is just confused? If it is really a TCP transmit error then more likely the internal DNS is having issues. .local often means mDNS which has uneven support in some places, I would try an actual IP address to be sure.
My issue was iptables.
I stopped iptables and I can access the chef-server from my local network again.

How actually server ports work

Imagine we have a hosting containing:
a search engine running on port 5678 (it's required this port it's open in order to work).
nginx running on port 80.
When a user connects to our website and search something on it, he is only connecting through port 80, but never through 5678. We can check this running "netstat -an".
So my question is: If the client it's never connecting directly with the search engine's port, why we need to keep it open?
Normally client requests are coming to your web server (port 80 or 443), and your web server (your php,or your java code) has a logic to connect to your search engine and send back the result to the client via port 80/443 (local socket connection, if web server and search server running on the same server). so clients need not to connect directly to your search engine port (5678). (from external networks). may be your web server internal interface and search engines internal interface connect locally via local s socket connection.
I'm not sure how you run your web server and search engine, is it two different servers or nginx act as a load balancer and send the client request to your multiple search servers. i think your search engine port use internally to communicate with your web server hosted software. or may be you run both nginx and search server on the same server.
other guess is your firewall or router forwarding port 80 request to your search server port 5678 (port forwarding).
try this on your search server
netstat -pant
this will give your all connection details, like local address,foreign address,state, and PID/Program name
Hope that helps
You can connect to a webserver using a different port. Port 80 is the default for web servers. (port 443 for secure, https, connections) so it's not normally specified since it's 'understood'
But you can, actually, specify a different port to connect to. In your example, a user would specify which port they want to connect to in the URL
http://www.example.com:5678
The same reason why some services live on other ports, like 22, 3000, 3306, 8080, 9000, you might not access those ports directly but maybe some other apps/services/protocols connect to it internally, or could even be not on the same server, like if you have separate app/db/mail servers, they would contact each others by ports.

Resources