Page 1 of 3

Connecting to my Windows 7 network

Posted: Fri May 10, 2019 1:58 am
by carlmart
Hi,

I can't seem to connect my Raspberry Pi3 +B, booted with LibreELEC/KODI, to my Windows 7 PC, by Ethernet.

I have tried everything, loading my IP address under SMB protocol, and I get "Invalid Argument" error.

The IP is correct, so the problem is not there.

What might be happening?

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 4:23 am
by W. H. Heydt
Is ssh enabled?

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 7:53 am
by DougieLawson
Have you enabled "internet connection sharing" or have you assigned a fixed IP address on both Win7 & your RPi.

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 11:46 am
by carlmart
Yes, of course. Sharing is enabled in all HDDs that have to be shared.

I didn't fix the IPs on Wndows or Rasp, but they continue to be the same all the time with this router.

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 11:55 am
by hortimech
Of course, the obvious question is, how are you trying to connect ?

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 6:15 pm
by carlmart
What do you mean how?

I already said it on my first post. What else do you want to know?

Linking the ethernet cable to the modem, checking the IPv4 on my W7, loading that in Kodi under SMB protocol, and getting nothing.

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 6:35 pm
by Ernst
carlmart wrote:
Fri May 10, 2019 6:15 pm
What do you mean how?

I already said it on my first post. What else do you want to know?

Linking the ethernet cable to the modem, checking the IPv4 on my W7, loading that in Kodi under SMB protocol, and getting nothing.
How long is the ethernet cable between the Windows PC and the Raspberry Pi ?

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 6:52 pm
by carlmart
At this moment, one meter.

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 7:11 pm
by Ernst
carlmart wrote:
Fri May 10, 2019 6:52 pm
At this moment, one meter.
That is why you do not succeed, in this configuration you have to configure each device with IP address and network mask. The simplest method is to connect both devices to a router/access point and let the dhcp server provide the necessary details.

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 7:14 pm
by carlmart
Sorry, I do not understand.

Of course it's connected to a router.

What network mask are you talking about? What's a network mask?

Which is the DHCP server and why DHCP should be used at all?

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 7:32 pm
by Andyroo
carlmart wrote:
Fri May 10, 2019 7:14 pm
Sorry, I do not understand.

Of course it's connected to a router.

What network mask are you talking about? What's a network mask?

Which is the DHCP server and why DHCP should be used at all?
Your first post infers you are directly trying to connect to the PC:
I can't seem to connect my Raspberry Pi3 +B, booted with LibreELEC/KODI, to my Windows 7 PC, by Ethernet
From the PC can you ping the Pi and can the Pi ping the PC?

As per above - do you have SSH access to the Pi?

Can you let us know the IP address of the Pi and the PC - as these are internal numbers on your network it is safe to give us them all and most likely starts 192. or 10.

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 7:37 pm
by Andyroo
DHCP should be issuing the IP addresses on your network and is possibly part of the router software.

If one of the devices is not getting an IP address correctly, you may need to restart the DHCP server or router.

Need work masks are part of sub netting https://en.m.wikipedia.org/wiki/Subnetwork and at home are normally 255.255.255.0 limiting you to one range of addresses such as 192.168.1.0 to 192.168.1.255

Also why did you have to check IPv4 on the Win 7 box - that’s installed by default.

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 7:41 pm
by Ernst
carlmart wrote:
Fri May 10, 2019 7:14 pm
Sorry, I do not understand.

Of course it's connected to a router.
I asked: How long is the ethernet cable between the Windows PC and the Raspberry Pi ?
You answered: At this moment, one meter.
Where in this configuration is the router ?
What network mask are you talking about? What's a network mask?

Which is the DHCP server and why DHCP should be used at all?
https://stevessmarthomeguide.com/basic- ... ng-course/

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 8:10 pm
by carlmart
Ernst wrote:
Fri May 10, 2019 7:41 pm
I asked: How long is the ethernet cable between the Windows PC and the Raspberry Pi ?
You answered: At this moment, one meter.
Where in this configuration is the router ?
Sorry, it was not my intention to misinform.

One meter cable from PC to router.
One meter cable from Pi to router.

This is for setting things up. When installed, the Pi will be about 5 meters away from router.

There will also be a Linux server, with CentOS, with the data HDDs

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 8:45 pm
by Andyroo
Can you ping the other device from both the Pi and PC?

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 8:57 pm
by hortimech
carlmart wrote:
Fri May 10, 2019 6:15 pm
What do you mean how?

I already said it on my first post. What else do you want to know?

Linking the ethernet cable to the modem, checking the IPv4 on my W7, loading that in Kodi under SMB protocol, and getting nothing.
That could have meant anything, you could be connecting from the other side of the world by ethernet. :D

If you mean that you are connecting to the same modem (or do you mean router ?) as the Win7 pc, then they are both on the same lan and should both be in the same network range e.g. 192.168.1.X If this is done, you should be able to connect by a few different methods, so which do you want to use ?

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 9:16 pm
by LTolledo
on the windows pc where you are sharing the folder, have you set the permissions to access it?

Re: Connecting to my Windows 7 network

Posted: Fri May 10, 2019 10:11 pm
by carlmart
LTolledo wrote:
Fri May 10, 2019 9:16 pm
on the windows pc where you are sharing the folder, have you set the permissions to access it?
Yes, of course.

I have been using a sharing system for 10 years, with my media players. But they used protocol v1, which now can't be used anymore.

If it wasn't for that I wouldn't be turning to Raspberry.

My first replacement for the media player was a TV Box, a Mecool, which uses Android as manager program. That is what I am using now.

So the sharing is not the problem.

If it's useful I can say what I have tried with LibreELEC on the Pi and hasn't worked.

For that I was getting the help of some local friends that use Raspberry, and we couldn't make the system to connect.

My guess now is my unit has a problem, as all else we tried didn't work.

Re: Connecting to my Windows 7 network

Posted: Sat May 11, 2019 1:23 am
by LTolledo
have you created a user in winpc? the user name of which is the same user you are logging to on the RPi? have you set the permissions for that user in winpc?

Re: Connecting to my Windows 7 network

Posted: Sat May 11, 2019 1:58 am
by carlmart
Well, I did create a user, cem-PC, when I installed Windows 7.

It's in fact the name I click in in Mecool, the Android media player I use and plan to replace with the Raspberry, opening up all my shared HDDs and folders to pick what I want to see from.

That's what I would like to get to with the Pi but can't .

Do I need to choose another name to link to with the Pi?

Re: Connecting to my Windows 7 network

Posted: Sat May 11, 2019 6:32 pm
by carlmart
OK, I imaged another SD card with Ubuntu Mate to see if I could see other things, particularly if I had a Raspberry hardware problem.

I seem not to. I could connect to the web, navigate to my Gmail account and open it.

So things up to the modem seem to be fine.

So the question is how I go from Raspberry to modem, from modem to PC shared stuff, then back to modem and back to Raspberry.

As PC to modem path seems to be fine for my Mecool, who's also connected to this modem, I have to find how find a path between PC and Raspberry.

How should I go about it, considering all sharing protocols are OK?

Re: Connecting to my Windows 7 network

Posted: Sat May 11, 2019 7:06 pm
by Andyroo
Some routers stop connections between devices (often hidden under GUEST networks).

Can you ping / shh to the Pi from your main machine?

Re: Connecting to my Windows 7 network

Posted: Sat May 11, 2019 7:30 pm
by carlmart
If you tell me how to do it, I will PING to the whole world if necessary!

Re: Connecting to my Windows 7 network

Posted: Sat May 11, 2019 7:33 pm
by Andyroo
carlmart wrote:
Sat May 11, 2019 7:30 pm
If you tell me how to do it, I will PING to the whole world if necessary!
On your Win 7 PC open a command line up and type
ping <ip address> where <ip address> is the IP of the Pi.

This will test the link between the two machines at a basic level.

Re: Connecting to my Windows 7 network

Posted: Sat May 11, 2019 7:58 pm
by Ernst
carlmart wrote:
Sat May 11, 2019 7:30 pm
If you tell me how to do it, I will PING to the whole world if necessary!
https://stevessmarthomeguide.com/basic- ... ng-course/

at the end there more links, the one that might be able to help you is "Useful Windows networking Commands".