New Port cannot be accessed - web

My server has jboss on port 8080,
Now I wants Tomcat too,
In tomcat 7.0.34 i had made the following changes
<Connector port="8010" protocol="HTTP/1.1"
redirectPort="8443" />
Now while I accessing the application from server local host it works fine..
But I was not able to access from Client side
Note:I had open the port 8010 from server amazon ec2

Make sure the Windows firewall service is started. If this is disabled, you will have issues.
Next, go to Control Panels and edit the firewall settings to allow port 8010 and 8443. Test this by using Telnet 127.0.0.1 8010 and port 8443.

Related

Shall we use port 443 instead of tomcat default port 8443

By default tomcat use port 8443 and the same will update in tomcat default configuration files [server.xml,web.xml etc].
But in our requirement, I have to configure tomcat to use only port 443. Application is working as expected and I don't see any major errors with this change.
Do we have any security issues with this change?

I can't listen express server on port 80

I'm trying to create an express server using node.js but when I start the server on port 80 my friends can't use it. I can select any other port and it will work, but when I try port 80 it doesn't work. I'm using https://www.yougetsignal.com/tools/open-ports/ and https://portchecker.co/check to check if the port is openned, I tried with 3000 and it work perfectly, but I need to get it working in port 80. I have already disabled my firewall and setup my DMZ host in the router.
I believe you are using windows as OS. In it the port 80 could be used as default port for some service. Please check the following -
Skype uses port 80 by default, you can change this in skype options > advanced > connection - and uncheck "use port 80"
Port 80 is the standard HTTP port, so to check which services are using you could run net stop http. It will list the services using port 80 and will ask to whether end them or not.
Port 80 could be occupied by IIS server. Please stop IIS and then re-run the node service.
Some SQL Server Reporting services also use port 80

Unable to view tomcat website externally

I have a server running tomcat. I can view the website fine on the same lan network but when I try the external IP it doesn't work. I port forwarded 8080, 8009 and 8005 tcp and udp. (I know the ports are forwarded because I used the same rule as my website that uses port 80 which works). The external firewall says that the connection is timing out, meaning the server is not replying. My connector in tomcat is the following:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
useIPVHosts="true"
address="0.0.0.0" />
Do you know why I am not able to see the website on my external IP? It has to be an application issue since port 80 works on my website and i am using the same rule to forward 8080. Any help would be greatly appreciated.

nodejs timed out on all ports when hosting on godaddy server

I've trying to run my nodejs/expressjs application on my godaddy server, but any port I use times out. I've tried using the application on my local device and it works fine. I have a snippet of my connection below.
var app = express();
app.listen(8080, function() {
console.log("Listening on port " + 8080);
});
When I run the program through ssh, I get no errors
node index.js
Listening on port 8080
But when I go to the corresponding location in my browser, I get:
xxx took too long to respond.
ERR_CONNECTION_TIMED_OUT
I'm pretty sure it has to do with running on the godaddy server. If anyone has experience using this service with nodejs, is there a specific port I should be using, or is there any other setup I should do?
Do you have a VPS with GoDaddy right? So I assume you have also root access.
SSH into your GoDaddy server as root and check if the node.js app actually listens on that port:
netstat -tunlp | grep 8080
If you see any result there for the node.js app and that port then the port is open.
By default, there should be a firewall on your server which might block most of the ports and allows only the necessary incoming traffic.
You can check if there is any rule for that port by issuing the command bellow:
iptables -nvL | grep 8080
If any result is returned, then you have to add an iptables rule to allow access to that port. There are multiple methods to do that:
permit full access from your IP access to the server
permit your ip to access port 8080 on the godaddy server
permit outside world to access port 8080 on your server
You could read any iptables guy, it's pretty easy to add/edit/delete firewall rules. Most of the cPanel/WHM servers come with CSF Firewall (which is based on iptables and perl scripts).
In order to allow an ip address to your firewall (if you have CSF Firewall installed) you have to issue the following command:
csf -a ip-address
I hope that helps!

Unable to access site remotely

we have IIS 7.5 on server machine.
All websites can be access locally (80 and 8081 port as well)
However, only port 80 website can be accessed remotely. But the website on 8081 cannot be accessed remotely.
What is wrong?
That is because you have firewall turned on for non standard ports (even if HTTP protocol is used and HTTP is enabled in firewall app/feature settings because it defaults to port 80).
To enable remote port 8018 access: under firewall.cpl -> Advanced settings -> Inbound rules add new rule for port 8081, TCP

Resources