networking win 10 desktop & win 11 laptop

Networking, connecting to the internet, wi-fi and home entertainment
User avatar
stuck
Panoramic Lounger
Posts: 8185
Joined: 25 Jan 2010, 09:09
Location: retirement

networking win 10 desktop & win 11 laptop

Post by stuck »

Despite having both a desktop PC and a laptop for many years I've never bothered to try and access one from the other, mainly because the laptop has always been a lower spec. machine than the desktop. Now though the reverse is true, my new laptop is superior to my desktop machine. Given that I thought it might be interesting to see if I could access stuff (like all my photos) that are on the desktop PC from the comfort of my sofa. I've had mixed success.

It seems that my desktop PC only appears in File Explorer on the laptop if I:
1) run 'services.msc'
2) find 'Function Discovery Resource Publication'
3) restart that service
even though that service has a startup type of 'Automatic (delayed start)' and says it is running.

Any suggestions?

Ken

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

I have had this problem through many updates. I have a BAT file that runs from task scheduler whenever I log on.

Code: Select all

NET STOP FDResPub
ping -n 2 -w 1000 16.1.1.0
NET START FDResPub
StuartR


User avatar
stuck
Panoramic Lounger
Posts: 8185
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

I'm guessing the ping is some sort of pause?

Ken

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

Yes the ping is a two second pause.-n 2 says do it twice. -w 1000 says wait 1000 milliseconds for a response 16.1.1.0 is a private IP address which I don't use on my home network (I suspect nobody does)
StuartR


User avatar
stuck
Panoramic Lounger
Posts: 8185
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

Thank you for the extra detail.

I've created a task to run an identical BATch file...

Ken

User avatar
stuck
Panoramic Lounger
Posts: 8185
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

...and it hasn't helped.

At the moment, on my desktop PC the laptop is shown under Network in File Explorer but the desktop machine is MIA. While on the laptop top, neither the laptop nor the desktop are shown under Network.

Whereas, earlier this afternoon both machines showed both machines and Everything Was OKTM

I might just not bother, this is looking like waaay too much hassle.

Ken

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

You need to run that batch file on BOTH systems every time they restart.
StuartR


User avatar
John Gray
PlatinumLounger
Posts: 5414
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: networking win 10 desktop & win 11 laptop

Post by John Gray »

stuck wrote:
13 Aug 2023, 16:19
I'm guessing the ping is some sort of pause?
Ken
Yes - PING's "-n" parameter indicates "the number of seconds to wait - 1", so "-n 2" would cause a wait of 1 second.

The most common form of a wait (here of 6 seconds) without any console output or other action is
PING -n 7 127.0.0.1 > nul

Actually, PING sends 'n' packets to the indicated IP address, separated by (very approximately) 1 second. Thus 2 packets would be separated by a single second, 11 packets would be separated by 10 seconds. I hope I don't need to say why the local IP address 127.0.0.1 is used...!
John Gray

"(or one of the team)" - how your hospital appointment letter indicates that you won't be seeing the Consultant...

User avatar
stuck
Panoramic Lounger
Posts: 8185
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

The 'NET STOP FDResPub' is giving an 'access denied' error on my Win 11 Pro laptop. I'm the only user on that machine and I have admin rights.

Any suggestions?

Ken

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

Tell task scheduler to run the bat file with full privileges
StuartR


User avatar
stuck
Panoramic Lounger
Posts: 8185
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

OK, I'll try that.

Thanks!