Mac Server Will Not Access Internet Even With Manual Ip

If they do, that server will be used even when the VPN is active unless you put a check in 'Allow changes to manually-set network settings' on Tunnelblick's 'Advanced' settings page. If the manual DNS server is your ISP's DNS server, it is probably set up to ignore queries that come from outside the network. When I go into my network preferences it says Status: On but it has a self-assigned IP address 169.254.18.44 and will not be able to connect to the internet. I've tried rebooting the system, rebooting my computer, deleting the wifi passwords off my keychain access, removing the network names and readding them. Nothing seems to work. How do I access a local web server on my laptop from another computer? closed Ask Question 35. I am able to access the server from my mac (where the server is running) via 10.55. But not able to access it from another machine even though both are in the same network. Web sharing option is not available in sierra.

Active1 year, 4 months ago

I want to assign a fixed private IP address to a server so that local computers can always access it.

Currently, the DHCP address of the server is something like 192.168.1.66.

Should I simply assign the server this same IP as fixed and configure the router so that it will exclude this IP from the ones available for DHCP?Or are there some ranges of IP that are traditionnally reserved for static addresses?

My beginner's question doesn't not relate to commands but to general priciples and good practices.

Practical case (Edit 1 of 2)

Thank you for the many good answers, especially the very detailed one from Liam.

I could access the router's configuration.

When booting any computer, it obtains its IPv4 address in DHCP.

The IP and the MAC addresses that I can see with the ipconfig all command in Windows match those in the list of connected devices that the router displays, so that I can confirm who is who.

Internet

The list of connected devices is something like

Things that I don't understand:

  • Although all IP adresses are all obtained in DCHP, they are displayedas by the router as if they are static addresses.
  • The router's setting 'Enable DHCP on LAN' is set on 'Off' but the IP addresses are obtained in DHCP however.
  • IP addresses attributed to the computers are outside of the very narrowDHCP range of 192.168.1.33 to 192.68.1.35

On any Windows computer connected in DCHP, ipconfig /all shows something like:

I'm missing something, but what?

Practical case (Edit 2 of 2)

Solution found.

How to access internet

For details, see my answer to Michal's comment at the bottom of this message.

I must admit that the way the router display things keeps some part of mystery.The router seems using DHCP by default, but remembers the devices that were connected to it (probably using their mac address). It could be the reason why it lists the IPs as static although they're dynamic. There was also Cisco router at 192.168.1.4 which appeared for some business communications service, but I had not the credentials to access it.

Martin Schröder
2471 gold badge5 silver badges24 bronze badges
OuzoPowerOuzoPower

7 Answers

Determine the IP address that is assigned to your server and then go onto the DHCP and set a DHCP reservation for that server.

JohnAJohnA

DHCP services differ across many possible implementations, and there are no ranges of IP that are traditionally reserved for static addresses; it depends what is configured in your environment. I'll assume we're looking at a typical home / SOHO setup since you mention your router is providing the DHCP service.

Should I simply assign the server this same IP as fixed and configure the router so that it will exclude this IP from the ones available for DHCP?

I would say that is not best practice. Many consumer routers will not have the ability to exclude a single address from within the DHCP range of addresses for lease (known as a 'pool'). In addition, because DHCP is not aware that you have 'fixed' the IP address at the server you run the risk of a conflict. You would normally either:

Mac Server Will Not Access Internet Even With Manual Ipod

  • set a reservation in DHCP configuration so that the server device is always allocated the same address by the DHCP service, or
  • set the server device with a static address that is outside the pool of addresses allocated by the DHCP service.

To expand on these options:

Reservation in DHCP

Mac Server Will Not Access Internet Even With Manual Ip

If your router allows reservations, then the first, DHCP reservation option effectively achieves what you have planned. Note the significant difference: address assignment is still managed by the DHCP service, not 'fixed' on the server. The server still requests a DHCP address, it just gets the same one every time.

Static IP address

If you prefer to set a static address, you should check your router's (default) configuration to determine the block of addresses used for DHCP leases. You will normally be able to see the configuration as a first address and last address, or first address and a maximum number of clients. Once you know this, you can pick a static address for your server.

An example would be: the router is set to allow a maximum of 128 DHCP clients with a first DHCP IP address of 192.168.1.32. Therefore a device could be assigned any address from 192.168.1.32 up to and including 192.168.1.159. Your router will use a static address outside this range (generally the first or last address .1 or .254) and you can now pick any other available address for your server.

TL;DR

It depends on the configuration of your DHCP service. Check the settings available to you for DHCP then either reserve an address in DHCP or pick a static address that is not used by DHCP - don't cross the streams.

LiamLiam

It's not a bad habit to divide your subnet to DHCP pool range and static ranges, but of course you can do what JohnA wrote - use reservation for your server, but first case is IMHO clearer, because you are not messing up your DHCP server with unused extra settings (it could be confusing then for another admins who are not aware of that the server is static). if using DHCP pool + static pool, then just don't forget to add your static server to DNS (create A/AAAA record for it).

Journeyman Geek
6,3893 gold badges27 silver badges46 bronze badges
patokpatok
5431 gold badge3 silver badges14 bronze badges

I prefer to set my network devices, servers, printers, etc. that require a static IP address out of range of the DHCP pool. For example, xx.xx.xx.0 to xx.xx.xx.99 would be set aside for fixed IP assignments and xx.xx.xx.100 to xx.xx.xx.250 would be set as the DHCP pool.

user1780242user1780242

In addition to the other answers I want to concentrate on the fact that your router configuration does not seem to fit the IP address configurationon your server.

Please have a look on the output of ipconfig /all:

IPv4 Address ........ 192.168.1.xx(prefered)

Default Gateway ........ 192.168.1.1 (= IP of the router)

DHCP server ............ 192.168.1.5

The clients in the network don't get the IP address from the router, but a different DHCP server in the network (192.168.1.5 instead of 192.168.1.1).You have to find this server and check it's configuration instead of the router's DHCP server config, which is seemingly only used for Wireless.

QippixQippix

My router (OpenWRT) allows for static DHCP leases.

Static leases are used to assign fixed IP addresses and symbolic hostnames to DHCP clients.

So, you supply the MAC address of the server and it's desired IP address as a 'static lease', and DHCP will always allocate the same IP. The client machine (the server in this case) requires no configuration changes and still picks up its IP address (the configured address) from DHCP.

spenderspender
2631 gold badge3 silver badges12 bronze badges

Note that you can't assign a fixed IP addresses in 192.168 so that clients can 'always access it' unless you also give each client a fixed IP address and subnet. Because if the clients use DHCP, then they get whatever subnect the DHCP server gives them, and if they use automatic addressing, then they won't be in a 192.168 subnet.

Mac Server Will Not Access Internet Even With Manual Ip Number

Once you realise that the system can't be easily perfected, you can see that your best options depend on what you are trying to do. Upnp is a common way of making devices visible. DNS is a common way of making devices visible. WINS is a common way of making devices visible. DHCP is a common way of making devices visible.

All of my printers have reservations: my printers aren't critical infrastructure, I want to be able to manage them, many of the clients use UPNP or mDNS for discovery anyway.

My gateway and DNS servers have fixed IP address in a reserved range: My DHCP server provides gateway and DNS addresses, and my DHCP server does not have the capacity to do dynamic discovery or DNS lookup.

None of my streaming devices have fixed or reserved IP values at all: if the network is so broken that DHCP and DNS aren't working, there is no way that the clients will be able to connect to fixed IP addresses anyway.

Mac Server Will Not Access Internet Even With Manual Iphone

user165568user165568

Mac Server Will Not Access Internet Even With Manual Ipad

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

Access Internet Saskatchewan

First, I apologize. I have a strong sense that this is somewhere on the internet but I can't find the correct key words to get the information.
The Setup:
1x Buffalo Router (WZR-HP-300NH) with DHCP enabled and 5 addresses available (and I believe running a version of DD-WRT but I am not overly experienced with it yet)
1x Wired Computer with static IP
1x Wired Wii with static IP
1x Wireless-G Computer connected with WPA2-AES with Dynamic IP
1x Wireless-G HP 6500 Printer connected with WPA2-AES with Static IP
The Problem:
The wireless computer, if set with a static IP, will connect to the network but not see the internet. When assigned by the DHCP, it connects and uses the internet without a problem. I don't recall ever having this problem before with my previous wireless router but it has been ages since I set that one up.
In the end, I want all my devices to have static IPs and leave only 2ish DHCP addresses setup for visitors with laptops.
Ultimately, I would be happy with some helpful hints and I'll be happy to post the solution for others if it works.
Like I said before, I have this sinking suspicion that it's an easy fix and that I'm just overlooking the obvious in my frustration.
Thank you
P.S. I can also provide more info, I just provided all that seemed applicable so as not to clutter this post.