-3

I have ADSL router with Static IP from my Internet provider. I know that, if I connect my server to router it can be visible from internet (working webserver etc.), but how does clients getting page know that, request should be put to server (I assume, there are many other devices like PC's in that local network).

1
  • What router do you have?
    – Joe
    Feb 8, 2016 at 20:49

1 Answer 1

2

You use port forwarding on your router so that any traffic originated from the outside to your public address to a particular port number gets forwarded to the IP address of the server.

For a web server, you would forward ports 80 and 443 to your web server's IP address.

3
  • 2
    And then advertise the public address in DNS so that clients can find it Feb 8, 2016 at 21:37
  • If i will use port forwarding, will it not break connection to normal stations on that port?
    – rubion
    Feb 8, 2016 at 22:28
  • 2
    Normal stations should not be getting anything on ports 80 or 443. Those are well-known port numbers for web servers.
    – Ron Maupin
    Feb 8, 2016 at 22:31

Not the answer you're looking for? Browse other questions tagged .