Issue with smb after change of ip

I launched nmap with this command:
nmap -T4 -A -v 192.168.1.171
and this is the result:

Starting Nmap 7.60 ( https://nmap.org ) at 2017-08-09 09:01 W. Europe Daylight Time

NSE: Loaded 146 scripts for scanning.

NSE: Script Pre-scanning.

Initiating NSE at 09:01

Completed NSE at 09:01, 0.00s elapsed

Initiating NSE at 09:01

Completed NSE at 09:01, 0.00s elapsed

Initiating ARP Ping Scan at 09:01

Scanning 192.168.1.171 [1 port]

Completed ARP Ping Scan at 09:01, 0.60s elapsed (1 total hosts)

Initiating Parallel DNS resolution of 1 host. at 09:01

Completed Parallel DNS resolution of 1 host. at 09:01, 16.50s elapsed

Initiating SYN Stealth Scan at 09:01

Scanning 192.168.1.171 [1000 ports]

Discovered open port 111/tcp on 192.168.1.171

Discovered open port 3306/tcp on 192.168.1.171

Discovered open port 22/tcp on 192.168.1.171

Discovered open port 139/tcp on 192.168.1.171

Discovered open port 445/tcp on 192.168.1.171

Discovered open port 8080/tcp on 192.168.1.171

Discovered open port 9091/tcp on 192.168.1.171

Discovered open port 9090/tcp on 192.168.1.171

Completed SYN Stealth Scan at 09:01, 0.57s elapsed (1000 total ports)

Initiating Service scan at 09:01

Scanning 8 services on 192.168.1.171

Completed Service scan at 09:02, 16.08s elapsed (8 services on 1 host)

Initiating OS detection (try #1) against 192.168.1.171

NSE: Script scanning 192.168.1.171.

Initiating NSE at 09:02

Completed NSE at 09:02, 30.75s elapsed

Initiating NSE at 09:02

Completed NSE at 09:02, 0.02s elapsed

Nmap scan report for 192.168.1.171

Host is up (0.0023s latency).

Not shown: 992 closed ports

PORT     STATE SERVICE     VERSION

22/tcp   open  ssh         OpenSSH 6.7p1 Debian 5+deb8u3 (protocol 2.0)

| ssh-hostkey: 

|   1024 39:7e:4a:6d:64:f5:ae:f1:da:a5:c7:9a:7c:6e:39:81 (DSA)

|   2048 13:12:09:eb:3d:25:d2:1d:8c:9a:95:ce:a1:0b:4d:0c (RSA)

|   256 c8:53:e1:cb:03:55:38:f0:c6:d1:6a:38:07:41:e9:71 (ECDSA)

|_  256 8b:5a:6b:26:1c:50:95:6c:62:f1:84:dd:ca:84:7f:d8 (EdDSA)

111/tcp  open  rpcbind     2-4 (RPC #100000)

| rpcinfo: 

|   program version   port/proto  service

|   100000  2,3,4        111/tcp  rpcbind

|_  100000  2,3,4        111/udp  rpcbind

139/tcp  open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)

445/tcp  open  netbios-ssn Samba smbd 4.2.14-Debian (workgroup: WORKGROUP)

3306/tcp open  mysql       MySQL 5.5.57-0+deb8u1

| mysql-info: 

|   Protocol: 10

|   Version: 5.5.57-0+deb8u1

|   Thread ID: 5091

|   Capabilities flags: 63487

|   Some Capabilities: Support41Auth, LongPassword, ODBCClient, Speaks41ProtocolOld, FoundRows, SupportsLoadDataLocal, SupportsTransactions, IgnoreSigpipes, DontAllowDatabaseTableColumn, SupportsCompression, IgnoreSpaceBeforeParenthesis, Speaks41ProtocolNew, InteractiveClient, LongColumnFlag, ConnectWithDatabase, SupportsAuthPlugins, SupportsMultipleStatments, SupportsMultipleResults

|   Status: Autocommit

|   Salt: u']~%7)c:7E3pZUx|'Hu

|_  Auth Plugin Name: 88

8080/tcp open  http        2 (Chorus Web UI for XBMC/Kodi)

| http-methods: 

|_  Supported Methods: GET HEAD POST OPTIONS

|_http-title: Chorus 2 - Kodi web interface

9090/tcp open  jsonrpc     XBMC JSON-RPC 2.0

9091/tcp open  http        Transmission BitTorrent management httpd

|_hadoop-datanode-info: 

|_hadoop-jobtracker-info: 

|_hadoop-tasktracker-info: 

|_hbase-master-info: 

|_http-favicon: Unknown favicon MD5: 57B821E7C4254D79E9ACDE5E46D21A2E

| http-methods: 

|_  Supported Methods: GET HEAD POST

|_http-server-header: Transmission

| http-title: Transmission Web Interface

|_Requested resource was /transmission/web/

MAC Address: B8:27:EB:38:67:E3 (Raspberry Pi Foundation)

Device type: general purpose

Running: Linux 3.X|4.X

OS CPE: cpe:/o:linux:linux_kernel:3 cpe:/o:linux:linux_kernel:4

OS details: Linux 3.2 - 4.8

Uptime guess: 3.388 days (since Sat Aug 05 23:43:22 2017)

Network Distance: 1 hop

TCP Sequence Prediction: Difficulty=265 (Good luck!)

IP ID Sequence Generation: All zeros

Service Info: Host: OSMC3; OS: Linux; Device: media device; CPE: cpe:/o:linux:linux_kernel



Host script results:

| nbstat: NetBIOS name: OSMC3, NetBIOS user: <unknown>, NetBIOS MAC: <unknown> (unknown)

| Names:

|   OSMC3<00>            Flags: <unique><active>

|   OSMC3<03>            Flags: <unique><active>

|   OSMC3<20>            Flags: <unique><active>

|   \x01\x02__MSBROWSE__\x02<01>  Flags: <group><active>

|   WORKGROUP<00>        Flags: <group><active>

|   WORKGROUP<1d>        Flags: <unique><active>

|_  WORKGROUP<1e>        Flags: <group><active>

| smb-os-discovery: 

|   OS: Windows 6.1 (Samba 4.2.14-Debian)

|   Computer name: osmc3

|   NetBIOS computer name: OSMC3\x00

|   Domain name: \x00

|   FQDN: osmc3

|_  System time: 2017-08-09T09:02:05+02:00

| smb-security-mode: 

|   account_used: guest

|   authentication_level: user

|   challenge_response: supported

|_  message_signing: disabled (dangerous, but default)

|_smb2-security-mode: ERROR: Script execution failed (use -d to debug)

|_smb2-time: ERROR: Script execution failed (use -d to debug)



TRACEROUTE

HOP RTT     ADDRESS

1   2.32 ms 192.168.1.171



NSE: Script Post-scanning.

Initiating NSE at 09:02

Completed NSE at 09:02, 0.00s elapsed

Initiating NSE at 09:02

Completed NSE at 09:02, 0.00s elapsed

Read data files from: C:\Program Files (x86)\Nmap

OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .

Nmap done: 1 IP address (1 host up) scanned in 70.31 seconds

           Raw packets sent: 1023 (45.806KB) | Rcvd: 1016 (41.370KB)

As far as I can tell, the smb ports look to be open.

My windows machine ip is 192.168.1.123, and from it I can ping the Raspberry and I can connect to it with ssh.

On the router, the firewall is off and there are no NAT rules.

Everything looks good, but it isn’t :disappointed: