Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

RustyShackleford

macrumors newbie
Original poster
Oct 19, 2015
23
1
I have a Mac Mini media server, to which I connect from my laptop using Screen Sharing (Finder->Go>ConnectToServer). Occasionally the Mini's IP address changes, which is a bit inconvenient. So I assigned it a static IP address using SystemPrefs->Network->ConfigureIPv4 and setting it manually. ScreenSharing works fine after that. But the Mini is otherwise unable to connect to the internet (an ethernet connection, wifi is turned off); IOW, if I try to access a webpage from Safari, it says it can't find the server. What is wrong ?
 
is that IP similar to the old one? typically the first 3 numbers must be the same for everything on your network.

did you enter an IP for the router? The first 3 numbers should be the same as the ip you assigned, but the last number is a one. Without that, your computer doesn't know where to look to find the internet.

you'll also want to check your router, see what range it's setup to assign. So when it assigns IPs, the first 3 will be the same and the 4th will be from 100 to 200. every router is different for defaults, so you need to check yours. You want to assign an IP outside of that range. If you gave your mini 111 as the 4th, but it's currently powered off, there's a chance the router could randomly assign 111 to a new device, then when you power on your mini, it also wants to be 111 which will cause problems.

the other option is to assign a static in the router, then the mini will pull that, and the router has it reserved for the mini, and won't assign it to others.
 
Wow, thanks for the quick replies.

When I open that "manual" dropdown (in SystemPrefs->Network->ConfigureIPv4), the router is already set with 1 as the last octal.

My ASUS router seems to automatically assign in both the range 100-200 and < 100 (for the last octet); so I don't think that's the problem.

You mentioned "power on your Mini", does that mean I need to re-start it for the changes to take effect ?

I guess I'll try to assign the name in the router, as suggested.
 
Last edited:
Make sure you do all of these:
1) Choose an IP address preferably outside the DHCP range used by your router.
2) Subnet mask - probably 255.255.255.0
3) Router x.x.x.1 - make sure it is correct
4) DNS - same as router or some external DNS resolver like 9.9.9.9
DNS being wrong would fit with your symptoms - local network ok, access to internet fails.
 
  • Like
Reactions: popup
In order to access the Internet the machine needs:
1. IP + netmask
2. Default Gateway (For home networking it is usually the router)
3. DNS server (For home networking it is usually the router)

Did you configure the DNS server?
 
Yes, in that dropdown (in SystemPrefs->Network), DNS is greyed-out and it's the same as the router (192.168.50.1).

It seems like the issue may be choosing an IP address outside the range used by the router. But it seems to be using ones less than 100, as well as i the range 100-200.
 
Related question: if I DO assign a name in my router, how do I then access by that name ? Easy enough for screen sharing. But I also have an Arduino that I interact with this perlscript ...

Code:
#!/usr/bin/perl

use LWP::UserAgent;
my $ua = LWP::UserAgent->new();

while ($line = <STDIN>) {
        $sendline = $line;
        $url = "http://192.168.50.184/" . $sendline;
        my $res = $ua->get($url);
        die "Can't GET $url" if (! defined $res);
        print $res->decoded_content;
}

If I've assigned the thing the name "foo" in the router, what do I put in place of the IP address in this perlscript ? Just using "foo.local" does not work. Response is:
Can't connect to foo.local:80 (nodename nor servname provided, or not known)
 
Last edited:
I'm not going to try assigning a static IP addr to the Mini. I can easily find it, by name, in the "Browse" tab after hitting ctrl-K in a Finder window,

But I'd like to figure out how to reference my Arduino projects by name. I believe I did the right thing in my router. But my attempts to access the Arduino (by sending http requests by wifi) don't work. I'm appending dot-local at the end of the name. Any idea what may be wrong ?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.