Samba server can only be accessed locally using smbclient?
I've set up a Samba server to share some files with my Windows computer. The server is up and running but somehow the shared folder can only be accessed locally with:
smbclient //localhost/share
If I try to run the command also locally on Linux but use the binded IP address like:
smbclient //xxx.xxx.xx.x/share
It gives an error message:
WARNING: The "syslog" option is deprecated
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Here's what I did to set up the server:
in smb.conf:
[global]
.... (default settings)
hosts allow = MY-WINDOWS-PC
bind interfaces only = yes
interfaces = lo eth0
[share]
path = /mnt/my-share-folder/
valid users = my-user
read only = no
browsable = yes
public = no
writable = yes
I've also set up ufw by using:
sudo ufw enable samba
Anyone has any ideas what I might be missing here? Thanks!
networking server samba
add a comment |
I've set up a Samba server to share some files with my Windows computer. The server is up and running but somehow the shared folder can only be accessed locally with:
smbclient //localhost/share
If I try to run the command also locally on Linux but use the binded IP address like:
smbclient //xxx.xxx.xx.x/share
It gives an error message:
WARNING: The "syslog" option is deprecated
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Here's what I did to set up the server:
in smb.conf:
[global]
.... (default settings)
hosts allow = MY-WINDOWS-PC
bind interfaces only = yes
interfaces = lo eth0
[share]
path = /mnt/my-share-folder/
valid users = my-user
read only = no
browsable = yes
public = no
writable = yes
I've also set up ufw by using:
sudo ufw enable samba
Anyone has any ideas what I might be missing here? Thanks!
networking server samba
add a comment |
I've set up a Samba server to share some files with my Windows computer. The server is up and running but somehow the shared folder can only be accessed locally with:
smbclient //localhost/share
If I try to run the command also locally on Linux but use the binded IP address like:
smbclient //xxx.xxx.xx.x/share
It gives an error message:
WARNING: The "syslog" option is deprecated
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Here's what I did to set up the server:
in smb.conf:
[global]
.... (default settings)
hosts allow = MY-WINDOWS-PC
bind interfaces only = yes
interfaces = lo eth0
[share]
path = /mnt/my-share-folder/
valid users = my-user
read only = no
browsable = yes
public = no
writable = yes
I've also set up ufw by using:
sudo ufw enable samba
Anyone has any ideas what I might be missing here? Thanks!
networking server samba
I've set up a Samba server to share some files with my Windows computer. The server is up and running but somehow the shared folder can only be accessed locally with:
smbclient //localhost/share
If I try to run the command also locally on Linux but use the binded IP address like:
smbclient //xxx.xxx.xx.x/share
It gives an error message:
WARNING: The "syslog" option is deprecated
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Here's what I did to set up the server:
in smb.conf:
[global]
.... (default settings)
hosts allow = MY-WINDOWS-PC
bind interfaces only = yes
interfaces = lo eth0
[share]
path = /mnt/my-share-folder/
valid users = my-user
read only = no
browsable = yes
public = no
writable = yes
I've also set up ufw by using:
sudo ufw enable samba
Anyone has any ideas what I might be missing here? Thanks!
networking server samba
networking server samba
asked 7 hours ago
peidaqipeidaqi
1012
1012
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/
I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)
IF THEY ARE NOT ON SAME SUBNET:
Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped
New contributor
add a comment |
This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118298%2fsamba-server-can-only-be-accessed-locally-using-smbclient%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/
I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)
IF THEY ARE NOT ON SAME SUBNET:
Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped
New contributor
add a comment |
https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/
I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)
IF THEY ARE NOT ON SAME SUBNET:
Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped
New contributor
add a comment |
https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/
I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)
IF THEY ARE NOT ON SAME SUBNET:
Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped
New contributor
https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/
I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)
IF THEY ARE NOT ON SAME SUBNET:
Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped
New contributor
New contributor
answered 7 hours ago
PequlaPequla
11
11
New contributor
New contributor
add a comment |
add a comment |
This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.
add a comment |
This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.
add a comment |
This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.
This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.
edited 7 hours ago
answered 7 hours ago
peidaqipeidaqi
1012
1012
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118298%2fsamba-server-can-only-be-accessed-locally-using-smbclient%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown