public ip for linux
hello, I have a linux server installed in my computer and I have a public ip (ex : 188.8.131.52) . I want to assign this public ip to this server . for example if i write 184.108.40.206:80 it should go to apache server or if i go to putty and write the ip with port 22 it should works. how to do so ? i tried to change the interfaces but it dose not work !
If your server is connected directly to the internet,
that is, you connect by modem, cable modem, or
dsl, the computer will have a public IP address.
If you have a NAT router, a typical small office/home
router, your computer will have a private IP address
assigned by the router.
You can either configure the router to forward inbound
traffic with port forwarding or dmz. With port forwarding
you can select which ports to expose to the internet.
With dmz, you can expose the whole computer (all ports)
to the internet. Consult your router's documentation.