Why Port Forwarding is not working in Huawei Router - portforwarding

I facing a problem in port forwarding for my Huawei HG8145V5 router. After doing the port mapping configuration at external port 80, while I am testing the open port forwarding, it is giving error that the port is closed for my public ip.
Let me explain why I am trying this step.
I have created a REST web service using SpringBoot and when I am accessing the API end point using localhost or my machine ip, it is working fine. But now I am trying access it publicly and that is why I am trying with this port forwarding option. But facing the issue as I mentioned.
Any help is much appreciated!! :)

Related

How to port forward external IP to websocket server hosted locally?

I have created a local websocket server using the ktor framework, which is available locally in the below IP.
[main] INFO Application - Responding at http://192.168.1.10:8080
And I'm able to access it locally from postman by hitting
ws://192.168.1.10:8080/chat
I would like to connect to this socket from the internet, But when I setup port forwarding (using NAT virtual server configuration), this doesn't seem to work. I get timed out error.
I tried this because, it is working fine for the http server (express app) I created in another port. From the below NAT virtual server configuration, I was able to do port forwarding and access the webservice from the internet.
I'm quite new to socket programming and networking. Kindly advice.
You can't have a single External Port mapped to two different Server ports. Each Server needs a distinct External Port mapped to it. Right now, you have External Port 80 mapped to both 192.168.1.10:3000 and 192.168.1.10:8080.
Once you fix that issue to use a separate External Port for each Server, then http://<externalIP>:<externalPort1> and ws://<externalIP>:<externalPort2> should work properly to reach the HTTP and WebSocket servers, respectively, from the outside world.

How do I connect to gRPC Server running on Raspberry Pi

I have a simple gRPC service(written in C#) running on my Raspberry Pi. I'm using Kreya to send a message and get a response back. It seems to only work if I send a message from a client running on the Pi but can't do the same from another computer. It shows the port is LISTENING so I'm confused. I'm not experienced in networking so any help would be appreciated.
UPDATE FOR .NET 6.0
All that is required to get the application to listen for any ip connection is to simply add the following to the Program.cs file. This will override any other configurations.
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(options => options.ListenAnyIP(9000));
localhost which generally resolves to 127.0.0.1 is a special network address.
It is a way for a host to refer to itself (generally) without using the (full) network stack.
In this case, it appears your gRPC server is only bound to localhost and, as a result, is only accessible to itself from other connections using the localhost address.
This explains why it can talk to itself but why other hosts are unable to access it. NOTE The other hosts using localhost are referring to their own localhost|loopback address.
You will need to reconfigure your gRPC server to bind to a specific network address. Often you can achieve this using 0.0.0.0 instead of localhost (or 127.0.0.1)

What could be the reason behind "ERR_CONNECTION_TIMED_OUT"?

I am using (airtel xstream fiber) connection and trying to do port forwarding. I forwarded port 3000 of wan and direct it to my system ip address 192.168.1.2 on port 3001.
Node server is running on my system on port 3001. And I can access my hello world website locally using 192.168.1.2:3001. But when I am trying to access using public ip, it show this error code "ERR_CONNECTION_TIMED_OUT".
Also, I found my router port 3001 is open using online port checking tool/website.
So, Can anyone please tell what could be reason behind this ? Is this the problem with windows.
You first need to check what ports are open by your ISP. If your ISP is giving you a local ip at the router. Basically, creating a ppp connection. It may be using a cg nat. In that case you need to buy a static ip, without that none of the traffic will be Directed to your router. Let me know if you find something, I'm currently looking to get xstream airtel as well.
No there is no need for static IP to be access server remotely. As of now, What I see is airtel allocates new ip every 24 hr or when router got disconnected. To access your server remotely you can do two things. First one is more secured.
Change Primary IP adress of your airtel router and use Portforwarding so that its port 80 will be free for you.
Enable DMZ and point it to your local server IP. [192.168.X.X]. In this case all of your ports of the device are exposed to internet. If you want to be secure. Make sure add another router between server and airtel router and enable port forwarding.
But in this case there is a catch, When you try to access your local website using public ip (which you can see on google search) it will redirect you to airtel router panel. But when you try to access it using other device (not server otherwise server will get disconnected) connected to internet using other network(other that your current airtel router like JIO sim, Airtel Sim, etc), It will work excellently.
To get rid of dynamic ip use no-ip services. Its website will help you more. Basically, It is dynamic dns server where you will get free domain. That will get update regularly while its service running on your system. To use other dns provider service like godaddy you must need an static ip.

sending port via router port not opening and how to access a computer/server externally using router's ip address?

Hi I am trying to make my router(TPlink router) to forward port by configuring it and by creating NAT virtual server or port triggering. Firstly the port doesn't open which I have checked via an online website, the port is closed. Secondly if the port does open, would I be able to access my computer or computer server or a website hosted on my wamp server externally via another network from some other place externally? I am not sure what are the things on my computer that I would be able to access from outside? How exactly am I going to do it? I am aware that I am going to use my router external ip address which I know and the port that I have associated with the ip address of the computer I am trying to access. I am just a beginner but I am really into networking. Can somebody explain the entire process please?
Your local host can be accessed from anywhere in the world.
Just use put the ip of the pc/wamp server installed pc in the DMZ Box under Forward Menu of your tp-link router & enable DMZ option.

How to access Tomcat 7 which runs as a service from netbeans from the Internet?

I completed a jsp project and I would like to make it available through the Internet. I opened the port 8084 to my router and I tried to reach the URL mypublicIP:8084, but nothing happens. I also have disabled the windows firewall and I'm not using any other firewalls. Thank you.
You must configure your router to forward the internet request to the particular computer that's running Tomcat. You do this by supplying the router with your computer's IP address which is different from what you're calling "mypublicIP". In my Linksys router configuration web application it's call Port Range Forwarding.

Resources