Z shell showing myuseraccount@"chromecast" as hostname???

Just recently got last macbook air M1. After opening the terminal, I saw that the first line is showing "myuseraccount@chromecast ~ %"... I have not modified anything specifically. What could explain the "@chromecast" hostname and what does this means? I mean I always had something like "mysuseraccount@useraccount-macbook-air ~ %". I don't get why I have this. And my computer name or account name has nothing to do with this.

All the terminal commands works without any issues.

Thank you.

Posted on Feb 7, 2021 12:03 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 8, 2021 4:33 AM

Ok, thank you dear Apple community. I solved this now.


What happened is the first time I configured the brand new macbook, there must have been a router issue where the netbios assigned to the mac was wrong ("chromecast").


What I did to solve this:


    • sudo scutil --set ComputerName "MAC-LAPTOP-SHARE"
    • sudo scutil --set LocalHostName "MAC-LAPTOP-SHARE.local"
    • sudo scutil --set HostName "MAC-LAPTOP-SHARE"
  • Flush the DNS cache after each one by running: dscacheutil -flushcache


Then before rebooting put back my router to factory default. Then the netbios was showing the correct info and the hostname was showing my macbook air name.


source: https://superuser.com/questions/962397/mac-identifies-itself-incorrectly-on-network

https://apple.stackexchange.com/questions/40734/why-is-my-host-name-wrong-at-the-terminal-prompt-when-connected-to-a-public-wifi


Thank you!

5 replies
Question marked as Top-ranking reply

Feb 8, 2021 4:33 AM in response to amazka

Ok, thank you dear Apple community. I solved this now.


What happened is the first time I configured the brand new macbook, there must have been a router issue where the netbios assigned to the mac was wrong ("chromecast").


What I did to solve this:


    • sudo scutil --set ComputerName "MAC-LAPTOP-SHARE"
    • sudo scutil --set LocalHostName "MAC-LAPTOP-SHARE.local"
    • sudo scutil --set HostName "MAC-LAPTOP-SHARE"
  • Flush the DNS cache after each one by running: dscacheutil -flushcache


Then before rebooting put back my router to factory default. Then the netbios was showing the correct info and the hostname was showing my macbook air name.


source: https://superuser.com/questions/962397/mac-identifies-itself-incorrectly-on-network

https://apple.stackexchange.com/questions/40734/why-is-my-host-name-wrong-at-the-terminal-prompt-when-connected-to-a-public-wifi


Thank you!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Z shell showing myuseraccount@"chromecast" as hostname???

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.