Questions tagged [ip]

Internet Protocol addressing, used to communicate between networked computers

Filter by
Sorted by
Tagged with
157
votes
7answers
498k views

How do I find my IP Address from the command line?

I know you can do ifconfig | grep inet, but that shows you several IPv4 addresses. How do I get the specific one for SSHing et al?
56
votes
3answers
65k views

What is the modern way to do port-forwarding on El Capitan? (forward port 80 to 8080)

The old utility ipfw was discouraged in recent versions of Mac OS X and is now gone from El Capitan. What is the modern way to do port forwarding in El Capitan? I simply want port 80 to forward to ...
26
votes
6answers
66k views

How to find IP address of my other Mac?

I have two Macs on the same network, both plugged into my internet router. I have screen-sharing set up on one of them, so I can connect to it using command-K in the Finder with a vnc:// URL, and ...
20
votes
1answer
12k views

How to get the geolocation of an IP address in Terminal?

Is it possible to get the geolocation of an IP address in Terminal? Not sure what the numbers in an IP address mean, but there must be some logic behind it, so lookup can't be that hard.
19
votes
2answers
6k views

Is there a OS X equivalent for iproute2?

I am searching a command line tool collection like iproute2 on Linux. Network Utility is OK, but I would like it on the command line.
18
votes
1answer
47k views

How do you get a printer's IP in lion?

How did you find out an existing printer's IP in lion? In Snow Leopard you can do it in this way: Open System Preferences Select the printer that you want to find the IP for Click 'Options & ...
14
votes
7answers
27k views

How can I find my IP address - not my company's router, but my local machines

I run rails servers at ports 3000 and 5000. What do I use (or how do I find) the IP address of my Mac? Not the one used for web browsing which is my companies host supplied IP but rather my local ...
14
votes
1answer
6k views

How to configure a static IP for a specific access point on OS X?

I own a MacBook Pro and always used Ubuntu in the past. In Ubuntu, I was able to configure my IP, DNS, Gateway, for a specific access point. There was a list of all the access points, each one with ...
11
votes
1answer
28k views

MacOS X - iptables?

Where is iptables in MacOS X? I'm running Yosemite 10.10.5 (14F27) and it seems to be missing. If it's not actually native to OS X, what's the best way to install it for this operating system? If for ...
10
votes
1answer
6k views

How to find all devices (IP Address, Hostname, MAC Address) on local network?

I've read almost every thread related to this, yet no one has quite made it easy to access a table like the following. IP Address Hostname MAC Address 192.168.1.10 | myAppleTV | 02:...
7
votes
3answers
35k views

Ping all IPs in LAN

How would I find out all the devices on my LAN by pinging them all in terminal? What would the code be?
7
votes
1answer
3k views

Where to find VNC access logs with IP addresses on Sierra?

I'm looking for logs on attempts by someone to access one of my Macs on a previous day. I have remote management running and I allow VNC access. In the logs I have found, I see the attempts they made, ...
6
votes
2answers
33k views

Can I turn off IPv6 and just use IPv4 on my iOS device?

I'm trying to use TeamViewer but have a problem when trying to access the network with IPv6 via GSM. Can I somehow turn off IPv6 and use only IPv4? I am using an iPhone 6 Plus with iOS 8.3.
6
votes
4answers
3k views

Figuring out what IP's and Ports a program is accessing

I play poker semi-professionally online and live. When I play online I have a hard time limiting the amount of time I play. There is a free application I found called self-control. It allows you to ...
5
votes
2answers
1k views

Restrict ssh access to selected IP on macOS

I want to restrict ssh access on macOS 10.12 to selected IPs on my local network. I tried writing the following files: # /etc/hosts.allow sshd: 192.168.1.32 sshd: 192.168.1.33 # /etc/hosts.deny sshd:...
5
votes
3answers
7k views

App to display IP address in menu bar?

I deal with a lot of external servers where the firewall must be configured to allow SSH access. I frequently need to know my external IP address, and it changes often. Does anyone know of an ...
5
votes
2answers
104k views

Another device is using your IP address mac, what do I change my IP address too?

Our internet router often stops working at home, but for the the second time only I have got a pop-up error saying: "another device is using your ip address". We have an iPhone and a Macbook but ...
5
votes
2answers
5k views

Thunderbolt Displays' ethernet adapter breaks MacBook DHCP/MAC Address reservations

We have deployed Thunderbolt Displays in my organization, which is almost entirely Mac-based. As you may already know, Thunderbolt Displays have internal Ethernet adapters which is very convenient in ...
4
votes
3answers
362 views

Why do I get different results for my IP when I type google “What is my IP” and when I type in macOS' terminal “ifconfig |grep inet”?

I get different results for my IP when I type google "What is my IP" and when I type in macOS' terminal ifconfig |grep inet Why are these results different on macOS version 10.13.2 High Sierra?
4
votes
1answer
3k views

Given its IP, how can I find out the name of a Windows PC on my network?

I'd like to find out the computer name of a Windows PC (like the name shown in the 'Shares' section of the Finder, e.g. bill-pc) given only its IP address. nslookup doesn't do the trick. I'm also ...
4
votes
2answers
5k views

Which command to only output the IPv6 routing table?

$ netstat -nr is great for outputting the Mac OS X IP routing tables. However its output is long as it contains both IPv4 and IP6 routing tables. Sometimes I wish to output only the IPv6 routing ...
4
votes
1answer
1k views

Another device is using your IP address

My MacBook Air (11 inch, early 2015) cannot connect to a wi-fi network. When I first tried, it said that it could not connect to the network since another device with the same ip address was present ...
4
votes
1answer
2k views

Static IP for a adhoc wifi network

Do you know if it's possible to give a static IP when creating a ad-hoc network on OS X?
4
votes
1answer
41 views

Changing MacOS's IP Address While Booted Off Another Drive

My server lives in a data center, 1,000 miles away. This Mac has two hard drives, a primary and a backup. Both are bootable and have the same network settings, so I can switch back and forth between ...
3
votes
2answers
9k views

OS X - List all active sockets

I'm looking for a simple command that will list ALL currently active and/or otherwise bound TCP & UDP sockets, corresponding port numbers and their respective states (i.e. ESTABLISHED, LISTEN, ...
3
votes
2answers
7k views

Editing Hosts File to Redirect URL to different IP Address

When I edit my hosts file to redirect a URL to a specific IP address, nothing happens. My hosts file looks like this - 199.204.138.195 zionica.com this is in the directory /private/etc/hosts. I am ...
3
votes
2answers
54k views

Getting IP address of hotspot connection

I want to find out the IP address of my iPhone Hotspot connection. I can enable it, and connect to it with a laptop, etc - but I want the IP address so I can telnet to the iPhone (I've set up the ...
3
votes
2answers
14k views

How can I add standard users to the print managers group?

I'm sysadmin for a small company; my users are on 10.6.8 (iMacs) and do not have admin rights for various reasons. The only times this is annoying is when a print job jams or otherwise does not go ...
3
votes
1answer
6k views

Does using an app send my IP address and device identification info to the app maker?

if I use an app, would I be giving info like my IP address and device identification like the MAC address to the app developer/owner?
3
votes
1answer
125 views

Unable to Perform Name Resolution

My MacBook Pro, for some reason, detects the wireless connection, but I cannot go to a web page using Safari. I can open the iTunes Store, but cannot access my email. I ran the Network Assistant and ...
3
votes
1answer
2k views

How can I add static route?

How can I add a static route "forever", that means without retyping add route in Terminal each time I'm using VPN? I found this solution for 10.6, but what if there is a nicer one for 10.7?
3
votes
1answer
326 views

Multiple IP addresses in Safari

Is it possible to choose which IP address will be used to browse the web? I am connected to a VPN which created tun interface with different IP addres so now I have two of them. I would also like to ...
2
votes
5answers
550 views

How to see public IP address of outgoing internet traffic when connected via router?

There is this nettop tool which shows the IP address but it doesn't show the public IP address when the Mac is connected via router - it shows the same address as we can see using System Preferences' ...
2
votes
1answer
4k views

AirPort Extreme: Keep IP address from changing

I've got an AirPort Extreme base station that I use for several computers and devices. I set it to configure IPv4 with DHCP, but there's a problem with that: The IP changes from time to time (as ...
2
votes
1answer
4k views

Which short command to only output the IPv4 routing table?

$ netstat -nr is great for outputting the Mac OS X IP routing tables. However its output is long as it contains both IPv4 and IP6 routing tables. Sometimes I wish to output only the IPv4 routing ...
2
votes
1answer
3k views

AirPort Extreme not accepting ISP cable modem DHCP

I've just recently changed the ISP and now have a cable modem, which only has one LAN port. Connecting here requires to use DHCP to get an IP address. Connecting my laptop works just fine and I get an ...
2
votes
1answer
53k views

How to configure Static IP on iPhone

I Want to use wifi on my iphone, Anybody can help me. I am already using my laptop on the same network through static IP. Please also tell me that Mac address will be used in this situation. The ...
2
votes
3answers
18k views

How can I find the IP of my router?

We have Bell (Canada) as an ISP. Their service works fine, I can also easily see what devices are connected to the home network via their home network settings. Additionally, I have my own modem, a ...
2
votes
1answer
296 views

Redirect IP traffic with 'pfctl' on macOS

I'm working on a mac with OS 10.13.6. I want to redirect all requests to 10.20.154.24:1111 made from my computer go to localhost:8080. I read about pf and pfctl, but could not make this work. I ...
2
votes
2answers
328 views

how to add ip routes with host name instead of ip address?

I want to add IP routes for host that I do not have the IP address for. I basically want tell macOS to search for a host in a specific interface: sudo route add -host <myHostname> -iface en7 ...
2
votes
1answer
3k views

Finding and disabling unnecessary open ports on High Sierra

I know open ports let applications communicate with devices or applications on network or internetwork, however I have been using my MacBook for 5 years and I have installed and removed lot of things ...
2
votes
2answers
2k views

why does my iMac has two IP addresses registered?

I have been doing network ping discovery on a WiFi-LAN and one of my iMac has two IP addresses, and I cannot understand why would that be. the only connection to the LAN is via Wifi, there is no file ...
2
votes
1answer
3k views

IP address changing too frequently

My Macbook pro is connected to my router over the AirPort. The IP address it gets changes every few hours. Is there a way on the mac to request the same address. I do not have access to the router to ...
2
votes
1answer
6k views

iPhone connects to WiFi but drops Internet connection

I am able to connect to WiFi alright, but the Internet connection drops off after about 60 seconds. In the routers console, the assigned IP address is shown which matches with one on the device. In ...
2
votes
1answer
21k views

How to Assign Static IP Address to iPad?

I have been having a problem with the wifi connection on my iPad. After much research online, I have narrowed it down to an ip address lease renewal bug. The iPad drops connection when the ip address ...
2
votes
3answers
1k views

How can I gain screen share/ssh access to a G5 connected by ethernet to a Mac Mini on my wireless Airport Extreme Network from my MacBook Pro?

Ok, so the scenario is this: I have a G5 Quad (running Leopard) with no wireless card. The G5 is connected by ethernet to a Mac-Mini (running Lion), which is picking up my AirPort Extreme network ...
2
votes
1answer
2k views

Set IP adress for the wifi hotspot on OSX

If I share my ethernet over WiFi I would like to specify the IP address of the hotspot (for now it defaults to 10.0.2.1). Can this be set somewhere in system settings? Note: the ethernet is not ...
2
votes
0answers
89 views

Limiting TCP connections

How can I limit TCP connections on Mac using Terminal? I used iptables on Linux (eOS) to limit the connections of an application (Ace Stream Player) as follows: $iptables -A OUTPUT -m limit --limit ...
2
votes
0answers
262 views

kernel.log contains thousands of messages about ip_len checksum. What gives?

My Mac Pro Cyrus (running 10.6.8 in 64 bit mode) keeps writing the same message (for different lengths) to the kernel.log file every second: cyrus kernel[0]: in_delayed_cksum_offset: ip_len 36608 (...
2
votes
1answer
2k views

Time Capsule multiple IP addresses

I have two 2TB Time Capsules attached to a network through a Netgear router. Each Time Capsule is connected via Ethernet with the WiFi set to "off". Each Time Capsule is assigned a unique static IP ...