Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In order for some ports to be opened in a remote server, I am required to give a range of IP addresses. How can I obtain this information in Ubuntu? Additional pointers regarding this topic will be helpful.

share|improve this question
up vote 2 down vote accepted

Based on the context of what you are asking, I am guessing you are connecting a server which uses high security / restricts their service to a restrictive allow list.

You will most likely need to give them your Internet IP Address. You can find this from your router's configuration page, or easier by going to

Please note that depending on your connection, it is possible that your IP may change over time.

share|improve this answer
It sounds like they're trying to find the IP Range from a DHCP Server Pool which means that it could be either their local DHCP server or that from their ISP. They probably need to provide the range of their public IP address because they are needing to provide it to a vendor who restricts based off of IP addresses. Since they have a dynamic/sticky address it will change and their vendor asked them for the range in which they could potentially pull from their ISP. By doing this it will open up to anyone that has an IP in that range so it's less ideal on home users' ISP than a business one. – kobaltz Sep 28 '11 at 4:42
@kobaltz; Yes you are right. I am dealing with exact scenarios. – Vijay Shanker Sep 28 '11 at 19:54
Contact your internet service provider. Let them know that the vendor you are working with restricts access to their website by using the public IP addresses of their clients. In order for you to have access to their website, you need the IP Address range that you could possibly get. An alternative is that you can ask your ISP if they allow Static IP Addresses. They will sometimes do this for an additional cost per month. If you go this route, then you'll need to configure your router's public address with the IP, Netmask, Gateway and DNS1/DNS2 provided. – kobaltz Sep 28 '11 at 23:31

It's rather hard to answer this question with the little information provided. Are you talking about your local DHCP pool or the public IP address from your provider? If you're talking about your local DHCP pool then you can check your router and/or your DHCP server. If you're talking about public addresses then it's based on your ISP and what they have configured. Usually you can contact your ISP and have them provide you an IP Address Range if your computer/servers have dynamic/sticky addresses.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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