I am using a server for my applications and one of my client requested to open a port 8000 for his DVR. He wants to do port forwarding on his router so that he can access his camera's from external network. Can anyone please help because i am unable to find a suitable solution for this over the web. Thanks in advance. Vineet. :)

  • You need to follow the router's instructions from its manual to enable port forwarding. The router's settings page should have that option. Apr 18, 2014 at 10:13
  • There is no problem with the router. The problem is that when i check the port on websites it shows that the port is not listening. Someone advised that you have to open that port from your server and i don't know how to open port in server.
    – Vineetb
    Apr 18, 2014 at 11:23
  • That's the job of an application. You need a program running on the server that is listening on that port. Which program should be listening on that port number depends on what you wish to do on that port. Apr 18, 2014 at 12:05

1 Answer 1


As Chirag64 already said in the commentary: You have to configure your router and cofiguration highly depends on the model.

To put things with port forwarding clear: Typically, an application that runs on a system and wants to act as a server sets up a listen on this client. It chooses an network interface on the machine it runs (or uses them all) and a specific port. (We talk only about tcp/udp here) You can find out about the applications currently listening on your machine with the command "netstat -l". Now if a client wants to connect to this server, it must know his ip and port and then send a connection request. If the server application is listening there, a connection will be established.

Now what's the problem with routers? It's not the router, it's the NAT function. In your LAN, all network participants typically have an ip like 192.168.x.y. This is a private address room. You can run any server there and connect to it without problems. But now there's the internet. Your router is the gate to it, it has typically only one unique internet ip on its outer interface. Now how do you connect to your local server from the outside? If a connection is incoming to the router on let's say port 80, to which pc in the inner network shall it be send? Now the port forwarding takes action: You tell the router to pass all packets from a specific port on his outer interface to a specific pc in the inner network on a specific port. You can now easily access your server from the outside.

I don't completely understand your question, but I hope this will give you enough information to understand and fix the problem.

So go to the router configuration and enable port forwarding, be sure to assign the correct extern and intern ports, be sure you try to connect to the extern one with your correct extern ip and have the application run on a computer with the correct ip and the correct port. If it does not work, try from LAN. If it works from there but not from the outside, have a look on your application's security settings. Some allow only access to certain ressources from the local network.

If this did not answer your question, please describe a bit more precisely what you intend to do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.