carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Connecting to my Windows 7 network

Fri May 10, 2019 1:58 am

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?

W. H. Heydt
Posts: 10737
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Connecting to my Windows 7 network

Fri May 10, 2019 4:23 am

Is ssh enabled?

User avatar
DougieLawson
Posts: 35780
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Connecting to my Windows 7 network

Fri May 10, 2019 7:53 am

Have you enabled "internet connection sharing" or have you assigned a fixed IP address on both Win7 & your RPi.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

Fri May 10, 2019 11:46 am

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.

hortimech
Posts: 303
Joined: Wed Apr 08, 2015 5:52 pm

Re: Connecting to my Windows 7 network

Fri May 10, 2019 11:55 am

Of course, the obvious question is, how are you trying to connect ?

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

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.

Ernst
Posts: 1214
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Connecting to my Windows 7 network

Fri May 10, 2019 6:35 pm

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 ?
The road to insanity is paved with static ip addresses

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

Fri May 10, 2019 6:52 pm

At this moment, one meter.

Ernst
Posts: 1214
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Connecting to my Windows 7 network

Fri May 10, 2019 7:11 pm

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.
The road to insanity is paved with static ip addresses

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

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?

Andyroo
Posts: 4133
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Connecting to my Windows 7 network

Fri May 10, 2019 7:32 pm

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.
Need Pi spray - these things are breeding in my house...

Andyroo
Posts: 4133
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Connecting to my Windows 7 network

Fri May 10, 2019 7:37 pm

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.
Need Pi spray - these things are breeding in my house...

Ernst
Posts: 1214
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Connecting to my Windows 7 network

Fri May 10, 2019 7:41 pm

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/
The road to insanity is paved with static ip addresses

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

Fri May 10, 2019 8:10 pm

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

Andyroo
Posts: 4133
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Connecting to my Windows 7 network

Fri May 10, 2019 8:45 pm

Can you ping the other device from both the Pi and PC?
Need Pi spray - these things are breeding in my house...

hortimech
Posts: 303
Joined: Wed Apr 08, 2015 5:52 pm

Re: Connecting to my Windows 7 network

Fri May 10, 2019 8:57 pm

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 ?

LTolledo
Posts: 1745
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Connecting to my Windows 7 network

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?
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

Fri May 10, 2019 10:11 pm

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.

LTolledo
Posts: 1745
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Connecting to my Windows 7 network

Sat May 11, 2019 1:23 am

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?
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

Sat May 11, 2019 1:58 am

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?

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

Sat May 11, 2019 6:32 pm

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?

Andyroo
Posts: 4133
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Connecting to my Windows 7 network

Sat May 11, 2019 7:06 pm

Some routers stop connections between devices (often hidden under GUEST networks).

Can you ping / shh to the Pi from your main machine?
Need Pi spray - these things are breeding in my house...

carlmart
Posts: 50
Joined: Fri Sep 22, 2017 1:52 pm

Re: Connecting to my Windows 7 network

Sat May 11, 2019 7:30 pm

If you tell me how to do it, I will PING to the whole world if necessary!

Andyroo
Posts: 4133
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Connecting to my Windows 7 network

Sat May 11, 2019 7:33 pm

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.
Need Pi spray - these things are breeding in my house...

Ernst
Posts: 1214
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Connecting to my Windows 7 network

Sat May 11, 2019 7:58 pm

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".
The road to insanity is paved with static ip addresses

Return to “Troubleshooting”