Results 1 to 13 of 13
  1. #1

    Assigning IP Address

    I have a question, I already have a dedicated server and have to create a VPS on it, but is there any way I could do to assign different IP addresses on every VPS I make for free or without requesting more IP addresses on the provider?...


  2. #2
    Join Date
    Oct 2013
    How many IP addresses did you get assigned by the provider?

    The obvious answer to your question is no, but that doesn't mean you don't have other options eg NAT to map different ports to different VMs.

  3. #3
    Hello and Good day ngardiner,
    Can you please elaborate NAT to map different ports to different VMs?

    Sorry for limited knowledge

  4. #4
    Join Date
    Oct 2013
    Hi rfstrider,

    NAT stands for Network Address Translation. It allows you to map one IP address to another (ie to Some of the more advanced NAT techniques include masquerading (where you hide multiple private IP addresses behind 1 public IP) and PAT - Port Address Translation, where you map on individual port numbers.

    Consider you have a host with 1 IP ( and behind it you have 10 VMs ( You can use PAT to forward port 1111 to, 2222 to etc.

    This would allow you to SSH to any of those hosts directly by using the port number assigned to each one, for example.

  5. #5
    Hello again
    Do you have skype so that we can talk over there?...
    Thanks for the great info you provided to me

  6. #6
    Join Date
    Oct 2013
    Sorry, I don't have skype but happy to help out if you have more questions. If you let me know what OS you're running and how many IPs you were assigned I'll see if I can give you an example

  7. #7
    I am using ubuntu OS
    just created 5 virtual machine there via VirtualBox,
    and I am planning to have different IP addresses on those VM
    Sad to say but /30IP address only

    Thank you bro for helping me out

  8. #8
    Join Date
    Oct 2013
    No worries. For those VMs, you'll need to have some Private IP addressing which virtualbox provides via the NAT adapter. In fact if you configure each of those VMs to use the NAT network adapter, VirtualBox will automatically assign IP addresses to them. See this section here:

    That will do exactly what you need except if you need incoming connections. What will be connecting into those VMs from the Internet? Or will they all just be routing outbound?

  9. #9
    What Im planning is both if possible, inbound and outbound.
    Thanks bro, so with this do you think I wont need to order more IP addresses?

  10. #10
    Join Date
    Jun 2010
    The vm can connect to the internet, but from the internet they can't be connected. We need to make a portforwarding using iptables as the example :

    iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 1022 -j DNAT --to-destination
    Change eth0 to your own network interfaces.
    Change 1022 to your own incoming ssh port you want
    Change to your own vm - my personal homepage

  11. #11
    It's not possible, you'll need to purchase more public IP's from your hosting provider

  12. #12
    It is possible but by using the port forwarding.

    You can use one Ip with multiple ports. - ★★ Managed VPS / Budget Servers / Colocation ★★
    Facilities : Atlanta, Buffalo and Las Vegas
    Web : http://www.serverlogix.comContact Us

  13. #13
    Join Date
    Nov 2013


    You can use NAT and assign each VPS private addresses. Assuming you use Proxmox

Similar Threads

  1. Replies: 22
    Last Post: 08-05-2011, 11:42 PM
  2. Assigning IP to servers
    By Mathelic in forum Hosting Security and Technology
    Replies: 2
    Last Post: 07-07-2009, 09:32 AM
  3. Assigning IP Address For Reseller
    By MyNet-Tony in forum Hosting Security and Technology
    Replies: 2
    Last Post: 12-15-2006, 10:49 AM
  4. Assigning an IP
    By Alex in forum Dedicated Server
    Replies: 7
    Last Post: 08-28-2005, 02:00 AM
  5. Replies: 8
    Last Post: 07-24-2002, 08:18 AM

Posting Permissions

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