To start out this is a duplicate question – however the question has no answer is at the top of the Google rankings. (I don't have enough status to answer it) macOS "mount_smbfs: server connection failed: Socket is not connected"
Scenario:
– Vmware Fusion
– Redhat 8.1
– MacOSX Mojave
I have setup a simple Samba share with a single user. I have successfully executed testparm on the linux system and can I call smbclient from the localhost of the linux machine and iterate over the shares.
All firewalls in the system have been turned off as well as as opening up the share to being 777 (this is a local dev environment)
also I have altered my config file as suggested in the following manner:
(with 2 being the beginning of my host machines IP address) server edit /etc/samba/smb.conf. Under [global] edit the following:
hosts allow = 2.
I can ping the machine, in fact I have a tomcat server that is up and running which I am actively connecting to so I know that they machines can speak to each other.
Typing in the following:
# mount_smbfs //someuser@1.1.1.1/somedirectory ./mntpoint
mount_smbfs: server connection failed: Socket is not connected
Best Answer
The root of my specific problem seems somehow to be tied to DNS ()- after searching through a number of different forums I came across the following link: macrumors
In the event the link goes dormant I found the following:
I also found the following:
apple discussion
so I did the following:
added the following line
saved my edits
Type the following command and press Enter:
After that type the second command and press Enter:
then changed my query above to the following:
They system asked for my password and it mounted. :)