How to force windows 10 to refresh network location - windows

I have a raspberry pi with Samba share and attached piDrive. I currently backup from windows to that networked drive (old address 192.168.1.117).
I've forced the pi to use eth0 only and assigned a static IP address.
After a samba restart and PC restart, the pi3 shows as a network device (\RASPBERRYPI3) however on clicking I get 'not found' and an 0x80070035 error.
If I manually add the new IP address to a mapped drive, it works fine (192.168.1.199) and I've successfully added it as a new drive. The issue is windows won't allow me to backup using the built in backup feature as it will only allow a network browseable location (the other computers on the network \raspberrypi3). Is there anyway I can force this to rescan for the new IP address or reset it in some way to allow access?
Many thanks,
Luke

The ONLY way I could do this after 6 hours of tinkering was to change the raspberry pi hostname. This was much easier than anything else, despite having to resolve a few issues on the pi side. I did try changing it initially (windows found and accessed no trouble) then changing it back, but again windows couldnt find it? Eventually I just opted for sticking with the changed name and resolved the Pi-side issues. Not ideal but it was the only thing that would work for me.

Related

Sharing files over internet for RPI

I am currently looking for someone to point me in the right direction. I need to connect to a Raspberry Pi over the internet so that I may add files to a specific folder from time to time.
I have installed tightVNC and I am able to log onto my Pi without a problem but I realized cannot share files between my PC and my Pi through TightVNC.
Since I am able to actually control my Pi remotely I first tried to used Google Drive on my Pi but that did not work through the browser same goes for my hotmail account or onedrive. I would like to set up a FTP server that would work over the internet but I am stuck and need a push in the right direction.
Here is a way to setup an FTP server just keep in mind that it will require additional ports allowed through firewall 21 for the FTP control channel and a few other depending on configuration for passive mode.
Basic instructions for FTP server for Raspberry PI can be found here: http://www.instructables.com/id/Raspberry-Pi-Web-Server/step9/Install-an-FTP-server/
Side note:
SFTP might be easier as it will just use the same port as SSH.
Instructions for SFTP here: https://www.raspberrypi.org/documentation/remote-access/ssh/sftp.md

The hosted network couldn't be started

i use HUAWEI USB internet connection (3G, HSPA+)
i tried to set a new virtual Hosted network but it was useless.
I made a batch file to insert orders (programming CMD) to make a virtual hosted network, it worked for only two days, then when i tried to start the virtual hosted network ("netsh wlan start hostednetwork") it giving me an error :
The hosted network couldn't be started. A device attached to the system is not functioning.
I encountered this error as well. But restarting my computer fixed it. Its probably a stupid thing to ask but it works sometimes.

How can I access MAMP Pro sites through Adobe Edge Inspect without using my IP address?

When I develop a website I typically use Edge Inspect in parallel with my computer's browser for testing. For every website, I create a new host in MAMP Pro, and create new directory on my computer which I point MAMP Pro to and put all my website files in. This way, I go to something like http://test.example/ and can access the developing site.
The problem comes in with Adobe Edge Inspect which cannot access the locally created hosts. I have found that if I point localhost, in MAMP Pro, to the directory of the site that I am working on, that I can then use my computer's IP address to have the results mirrored on my mobile device. The biggest problem is I have to make database changes (Magento, Wordpress, etc.) every time the IP address changes (which can happen frequently due to moving my laptop around and connecting to the internet in a variety of ways). Using localhost (my computer's IP) also eliminates one of the benefits of MAMP Pro.
The way I currently do it (based off of Andy Howells suggestion over here) is to use an alias in MAMP Pro so that I go to test.example.[my.ip.address].xip.io. After that I must change the URL by opening PHPMyAdmin from MAMP Pro and changing the URL values for the site (again, typically Magento, or Wordpress). This then allows me to maintain one of the benefits of MAMP Pro by keeping my vhosts seperate, but I still must perform a database change every time I change IP addresses (as well as create a new alias most instances).
How can I use Adobe Edge Inspect with MAMP Pro and not change my IP address in the database?
(I don't use dyndns.com - they are just on from when I turned them on to test something earlier.)

Mac OSX snow leopard file sharing with windows box

Having a weird issue. I'm new to Macs and have a windows VM that I'm running on a new macbook pro via VM Fusion. I setup a file share on the windows side (Win 7) and accessed it from the Mac side using the "Connect to Server" dialog. I did it successfully several times, even adding in a symlink on the mac side and starting a git repository. About halfway through my first pull from my git server the pull froze (i.e. didn't continue pulling). I waited for quite a while like that before killing the terminal window, and after that I was no longer able to connect to the share in any fashion. I've tried removing the share on both sides, rebooting both sides, but ever since then trying to connect back to that VM gives me an error that "There was an error connecting tot he server {ip address}. Check the server name or IP Address, and then try again"
IP is right, I've tried it with the name as well (which is how I did it originally) which was also right; I can ping from the mac side to the windows side both the IP and name. I have tried editing /etc/hosts to point a name at the IP address that way, same result. I've tried turning off the windows firewall and antivirus, no difference.
I guess I'd assume it was me not doing something right on the shares, except that it went from working to not working w/o me changing any settings. It's a new box, so it's possible that there was an OS patch (on either side) that caused the change, but I didn't notice any going in during the time in question.
UPDATE: I pulled another new mac patch down (I guess I didn't have them all) and it worked again. Right up until I froze it again with the git issue (I had tried to resolve the pack size issue that appeared to be the root cause of the git problem, I was wrong).
Is there any process I should look at killing and restarting? This behavior seems like there's a hung process somewhere, though shutting the mac down and booting it up again isn't helping, so I don't know.
Figured it out. Turns out that turning off sharing on the windows sid,e then turning it back on solved it.

Running OSX MAMP test server on VirtualBox Windows 7

I have MAMP server and several test sites installed on my OSX 10.6.3. I just installed Windows 7 on a VirtualBox virtual machine. I have managed to successfully share folders to the Windows installation, but I am wondering if I can run my MAMP sites in Windows without installing a different Localhost there.
Does anyone know if this is possible? It would be very convenient if I could test my sites in both operating systems all hosted from a single location.
Although this is probably too late for the OP, posting here for others.
If you're just trying to access your Mac localhost, then all you need to type into
the guest os is 10.0.2.2.
If you're trying to access named virtual hosts such as 0.dev or dev.local, then you need to modify the guest os host file to map the domain names to the host os.
In the case of Windows 7, you simply navigate to C:\Windows\System32\drivers\etc then modify the hosts file with admin privs.
Inside you will you will see the following line commented out
# 127.0.0.1 localhost
Below it, add entries for each of the virtual hosts you wish to use
10.0.2.2 maclocalhost
10.0.2.2 0.dev
10.0.2.2 dev.local
I just setup three VirtualBox VMs today specifically for connecting to MAMP on an OS X host. Thought I’d share my method of doing this since it works well for me.
While accessing the localhost via 10.0.2.2 I find using a host only network to be a much more flexible & reliable way to handle scenarios. You get a another IP address so debugging network issues on a VM can work as well.
First, go to VirtualBox -> Preferences…. Then choose Host-only Networks. You should have a vboxnet0 adapter in place. If not, add one.
Once you are set with that, select the vboxnet0 adapter & click the small yellow screwdriver icon on the right side of that window to edit the options. Under the Adapter pane, set the IPv4 address to 192.168.56.1 & the network mask to 255.255.255.0. Leave the IPv6 area blank. The IPv6 network mask length should be 0.
The DHCP server stuff should be blank, like so.
Okay? Got that set. Now choose your VM. In my example it’s the IE8 - Win7 image for web development testing. And click the Settings gear. Then click the Network icon. And now choose Adapter 2. And choose Host-only Adapter from the pull down menu for Attached to:. And then choose vboxnet0 under Name:. The rest of the options should just be the standard options.
Now, when you startup your Windows VM, launch Internet Explorer. And go to the address:
http://192.168.56.1
With that, you should be set! But if you are used to using Macs, be 100% sure you have the http:// in front of the address. I got embarrassingly stuck when I just entered the straight 192.168.56.1.
And as Jon Jaques says in his answer you can edit the hosts file in Windows to point to the IP address of 192.168.56.1. It will make your life easier & if you know how to setup named virtual hosts in MAMP (not hard) you can setup a few different sites to test via VirtualBox.
Oh, also, if you are used to using your machine name in OS X to connect to MAMP—like with the name LogicArtist.local if that is your machine’s name—you are not in any luck. The VirtualBox built in software router claims to pass multicast data, but it doesn’t. Check out this post which explains it in more detail.
In the environment created by VirtualBox there are multiple NICs that
claim to be multicast capable. However, they are lying. Furthermore,
because of the way VirtualBox assigns metrics, your outgoing socket
will get assigned to a liar who will happily gobble up your multicast
messages and not send them on.
Annoying, but you can work around stuff like that by at least editing your hosts file to have an entry for LogicArtist.local like this:
192.168.56.1 LogicArtist.local
Definitely not as elegant as a true multicast address being passed, but at least the brief amount of time you will be spending in Windows to debug things will be made easier but adding that entry.
MAMP Pro lets you specify the port for each host. Choose a unique port for your desired host. In your virtual machine simply type http://10.0.2.2:PORTNUMBER and your site will appear. Example: I created a host called localuproar and assigned it port number 9000. In VirtualBox I opened up Internet Explorer and typed http://10.0.2.2:9000, and my site appeared.
You can mess around with hosts files as described in previous posts, but I think it is easier to simply type in a port number.
On a related note, there is a very easy way to create virtual machines for all versions of Internet Explorer (http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/):
Launch Terminal
Type this in your terminal window
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | bash

Resources