d2jsp
Log InRegister
d2jsp Forums > Diablo II > Diablo 2 Discussion > Diablo Clone Hunters > How To Check Ip On A Mac? > Anyone Got A Link?
Add Reply New Topic New Poll
Member
Posts: 8,254
Joined: Jun 5 2011
Gold: 6,207.18
Jun 22 2019 02:35pm
help please

A friend wants to learn how to check IP but they use a Mac and not a windows PC

Can any Mac users help me out?

Member
Posts: 22,930
Joined: Nov 2 2009
Gold: 18,391.90
Jun 22 2019 02:37pm
1) throw your mac out of the window
2) buy a normal pc/laptop
3) ???
4) you get all ip's
Member
Posts: 689
Joined: Jun 16 2019
Gold: 0.00
Jun 22 2019 03:38pm
Try this:
1. Open the terminal app
2. Type: netstat -an | grep 4000
3. Press Enter.

Explanation:
netstat is a command for displaying network data structures. The "a" flag tell netstat to display all port activity on your computer. The "n" flag tells netstat to display connections as IP addresses instead of symbols, domain names.
"|" is called a pipe. A pipe takes the text output of the first command and sends it to the second command.
grep is a line search tool, it only displays lines of text that contain your search string. In this instance, we tell grep to search for "4000". 4000 is the diablo 2 game port number.

Manuals:
https://www.unix.com/man-page/osx/1/netstat/
https://www.unix.com/man-page/osx/1/grep/

Hope this helps.

P.S. You should never execute commands that you don't understand in your terminal app. This is very dangerous as an attacker could do harm to your computer, destroying your data or worse. This is why I included explanations and manual references. Be safe and understand what commands you are executing.

This post was edited by drinkwater on Jun 22 2019 03:41pm
Member
Posts: 8,254
Joined: Jun 5 2011
Gold: 6,207.18
Jun 22 2019 03:52pm
Quote (drinkwater @ Jun 22 2019 05:38pm)
Try this:
1. Open the terminal app
2. Type: netstat -an | grep 4000
3. Press Enter.

Explanation:
netstat is a command for displaying network data structures. The "a" flag tell netstat to display all port activity on your computer. The "n" flag tells netstat to display connections as IP addresses instead of symbols, domain names.
"|" is called a pipe. A pipe takes the text output of the first command and sends it to the second command.
grep is a line search tool, it only displays lines of text that contain your search string. In this instance, we tell grep to search for "4000". 4000 is the diablo 2 game port number.

Manuals:
https://www.unix.com/man-page/osx/1/netstat/
https://www.unix.com/man-page/osx/1/grep/

Hope this helps.

P.S. You should never execute commands that you don't understand in your terminal app. This is very dangerous as an attacker could do harm to your computer, destroying your data or worse. This is why I included explanations and manual references. Be safe and understand what commands you are executing.


Outstanding. This is exactly what I was looking for. I'm not even going to relay the info, I'll just direct my friend here.

Thank you so much!

Member
Posts: 7,632
Joined: Jun 27 2011
Gold: 1.00
Jun 22 2019 05:42pm
Quote (equable @ 22 Jun 2019 22:37)
1) throw your mac out of the window
2) buy a normal pc/laptop
3) ???
4) you get all ip's


OH MY GOD it's in my head everytime :rofl:

thank you good laugh :)
Go Back To Diablo Clone Hunters Topic List
Add Reply New Topic New Poll