ipconfig and other equivalent commands
Hi!
I'm trying to play a game that puts me automatically in 1 of 2 possible servers and most of the times I land in the wrong one.
One fix to this problem is to close the game, reboot the system and log back in.
The other fix is to run this line of code, but it's for Windows.
Are there any equivalencies to macOS?
open notepad and paste this into it
ipconfig /release
ipconfig /renew
arp -d *
nbtstat -R
nbtstat -RR
ipconfig /flushdns
ipconfig /registerdns
save as networkreset.bat ow w/e name u want .bat
then right click and run as administrator
The above code resets the DNS cache and network interfaces.
- The two ipconfig commands will release the current IP address and then immediately ask for a new one.
- The arp command deletes the current host name so we can reacquire it.
- The nbtstat -R command purges and reloads the remote cache name table.
- The nbtstat -RR command sends Name Release packets to WINS and then starts a refresh.
- The final two ipconfig commands flush the DNS and then initiate manual dynamic registration for the DNS names and IP addresses that are configured at the computer.
Looking forward to an answer!
Thank you in advance
MacBook Pro 15″, macOS 13.6