Webserver using noip on rastberry pi - webserver

Im using a pi and I've made a webpage using the yeoman generator "angular". Backend is made in springboot and running on port 8080 and the frontend is a angular app running on port 9000.
So here is the question.
I've setup the noip according to some guide (dont have the adress, month ago or so). And I've tried forward the ports 22 -> 22, for ssh and 3389 for remote desktop. All works fine. And I added på 80 (WAN) going to 9000 (LAN) to reach the webpage but that doesent work att all.
I've tried opening up ports 8080 -> 9000 and 9000 -> 9000 but it dosent seem to work.
I've also tried different webbrowsers ending with different ports,
my-dns:80
my-dns:8080
my-dns:9000
Nothing works. :(
update
Now I get this message going against my-dns:8080

Related

Issue getting my web server to work from external devices

I am attempting to set up an apache2 web server on my raspberry pi. I am able to connect to it by doing http://localhost:8080 (8080 because my router blocks port 80). Although when I do http://my.pub.lic.ip:8080 the connection times out. I set up port forwarding so that requests going to my router on port 8080 go to my raspberry pi on port 8080. This does not seem to work but I'm also not sure if the port forwarding is the cause or if it is something else. Any suggestions?
Is your web server configured to listen on the network interface besides localhost?
https://httpd.apache.org/docs/2.4/bind.html
For example, to make the server accept connections on both port 80 and port 8000, on all interfaces, use:
Listen 80
Listen 8000
To make the server accept connections on port 80 for one interface, and port 8000 on another, use
Listen 192.0.2.1:80
Listen 192.0.2.5:8000
You can try using nmap by finding your router's public IP and on the raspberry pi type nmap my.pub.lic.ip This will show you what services are actually being published to the world. This gives more insight to the problem.
I got the web server up and running although for some reason it appears that my isp would only allow it to be hosted securely (as an https page)(I'm not sure if that's the right way to phrase it). To achieve this for free, I used cloudflare's ssl service. A tutorial to set it up for apache2 can be found here

apache2 web server works on localhost but can't go live

My website cannot go live!
The following is my web server setup.
1. Rogers modem – Hitron CODA-4582
2. Port Forwarding
Application Name Public Private Protocol Local IP Address
HTTP 80 – 80 800 – 800 TCP 192.168.0.201
HTTPS 443 – 443 883 – 883 TCP 192.168.0.201
3. Operating System - ubuntu 16.0.4
Apache2 Sever /etc/apache2.conf file.
I modified two things.
a. Uncommented the line ServerRoot “/etc/apache2”
b. Appended one line at the end of the file: ServerName my_rogers_IP_address.
I executed a command: sudo app info “Apache Full”
The output is
Profile: Apache Full
Title: Web Server (HTTP,HTTPS)
Description: Apache v2 is the next generation of the omnipresent Apache web
server.
Ports:
80,443/tcp
Then, I executed another command: sudo ufw allow in “Apache Full”
I thought I have done what I needed to do. So, I opened up the browser for testing. It only works for 127.0.0.1 or localhost. It won’t work if I enter http://my_rogers_IP_address.
Can someone give me a pointer?
Thank you in advance!
You need to point the apacheserver to a host that can actually host your website. Localhost is just a local loop between your computer's machine and the server. I would recommend using Heroku, or Cloud9, which is free. Additionally, you could buy a static IP for your site to use, however, this is not cost-effective. It is up to you whether you have the funds or just want to do this for fun.
I got my problem solved!!
It is my bad! Everything is fine except the private port setting.
The private port must be within the public port range.
Everything is working fine now. Hope this can help someone else.
Good day!

Openshift binding a TCP port with port forward?

according to this doc
Does this mean we could port forward 8000 and 8443?
If I deploy a spring integration project with TCP port binding to 8000 or 8443, will I able to telnet to openshift?
I have tried, but not sure what happened. When I use putty RAW mode connect to 8443, and send some text, nothing happened on the server console, my program should print out what it received. so I suppose I failed, right?
P.S. that project was tested using localhost tomcat, it works locally.
this related question seems to successfully forwarding many port.

Port Forwarding without hosting server

I just want to know if I can forward port 80 or 8080 or 21 on my router just to check if those ports are open to public. I don't have a server running on my PC though. I'm sure it's possible if a server is running and configured.
This is a very detailed link on how to do it , but i guess it is also depends on the router you've got .
http://www.pcworld.com/article/244314/how_to_forward_ports_on_your_router.html

Closed connection or refused connection on port 80

I am having problem with my ports, yesterday I opened port 80 and setup local area connection propeties for ipv4 to use static ip 192.168.1.4, I used ipconifg in cmd to check it first. I am using WAMP server on my pc with windows 7 64-bit. It worked ok.
But today ports are closed, and I didn't changed anything from yesterday. I tried to opened additional ports besides 80 like 8081,443, 8080 in my router with local ip 192.168.1.4 like same setings in my ipv4 propeties to see if give some result, I disabled router firewall, allowed ports to go trough windows firewall, and added all ports for tcp and udp to my norton internet security, I tried also disabling whole firewall but same result.
WAMP is running and listening on port 80, 8081, 8080, 443.
This is part of wamp apache httpd.conf file.
Listen 0.0.0.0:80
Listen [::0]:80
Listen 8081
Listen 443
Listen 8080
ServerName localhost:80
When I check which program is using port 80, it says Apache/2.4.9 PHP/5.5.12
I noticed that all other ports except 80 and 443 are closed, but 80 and 443 are refusing connection if router firewall is off, and if its on they are closed also. And yesterday I had router firewall on, norton firewall on, and no rules for windows firewall, and it worked.
Thanks for your help in advance.
Try to open the task manager --> processes and close all the process related to apache or JBoss or which ever server you are using. Then try to restart the application. If this does not work try to go the location of the server/ bin folder and run the shutdown.bat in windows or shutdown.sh in linux. It should start working.
It seems there is a Web server running on your PC. try to shut it down