Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    public ip for linux

    hello, I have a linux server installed in my computer and I have a public ip (ex : . I want to assign this public ip to this server . for example if i write 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 !

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    the hills
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts