<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Local file system access while connected to the home router]]></title><description><![CDATA[<p dir="auto">Hello,<br />
will I have an access to a local file system on WiPy via FTP when WiPy will be connected to the home router?</p>
]]></description><link>https://forum.pycom.io/topic/816/local-file-system-access-while-connected-to-the-home-router</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 17:46:14 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/816.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Mar 2017 11:36:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Local file system access while connected to the home router on Sun, 05 Mar 2017 11:36:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
will I have an access to a local file system on WiPy via FTP when WiPy will be connected to the home router?</p>
]]></description><link>https://forum.pycom.io/post/4907</link><guid isPermaLink="true">https://forum.pycom.io/post/4907</guid><dc:creator><![CDATA[michalt38]]></dc:creator><pubDate>Sun, 05 Mar 2017 11:36:14 GMT</pubDate></item><item><title><![CDATA[Reply to Local file system access while connected to the home router on Sun, 05 Mar 2017 11:45:25 GMT]]></title><description><![CDATA[<p dir="auto">That's how I configured my WiPy and LoPy. They run in STA mode, and either get their IP address from the router, or I set fixed addresses from the router's network. Using that IP address, I can access them with ftp. They act just as a server on your LAN.</p>
]]></description><link>https://forum.pycom.io/post/4908</link><guid isPermaLink="true">https://forum.pycom.io/post/4908</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Sun, 05 Mar 2017 11:45:25 GMT</pubDate></item><item><title><![CDATA[Reply to Local file system access while connected to the home router on Sun, 05 Mar 2017 12:14:47 GMT]]></title><description><![CDATA[<p dir="auto">How can I set the WiPy IP address? In this command: wlan.ifconfig(config=('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8')) the first address is a WiPy's IP?</p>
]]></description><link>https://forum.pycom.io/post/4910</link><guid isPermaLink="true">https://forum.pycom.io/post/4910</guid><dc:creator><![CDATA[michalt38]]></dc:creator><pubDate>Sun, 05 Mar 2017 12:14:47 GMT</pubDate></item><item><title><![CDATA[Reply to Local file system access while connected to the home router on Sun, 05 Mar 2017 13:26:19 GMT]]></title><description><![CDATA[<p dir="auto">That's right. Here is the little script snippet I run on startup:</p>
<pre><code>import network
import time
# setup as a station
wlan = network.WLAN(mode=network.WLAN.STA)
wlan.connect(ssid='my_ssid', auth=(network.WLAN.WPA2, 'my-passwd'))
while not wlan.isconnected():
    time.sleep_ms(50)
wlan.ifconfig(config=(&quot;10.0.0.141&quot;, &quot;255.255.255.0&quot;, &quot;10.0.0.240&quot;, &quot;192.168.44.66&quot;))
print(wlan.ifconfig())
</code></pre>
<p dir="auto">That sets the IP to 10.0.0.141</p>
]]></description><link>https://forum.pycom.io/post/4912</link><guid isPermaLink="true">https://forum.pycom.io/post/4912</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Sun, 05 Mar 2017 13:26:19 GMT</pubDate></item><item><title><![CDATA[Reply to Local file system access while connected to the home router on Sun, 05 Mar 2017 18:52:42 GMT]]></title><description><![CDATA[<p dir="auto">I do it in the same way like Robert. I have this section in my main.py--perhaps it is better in <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a> ?--to connect to the local WiFi</p>
<pre><code>#
# WiFi configuration 
#
import machine
from network import WLAN

# configure the WLAN subsystem in station mode (the default is AP)
wlan = WLAN(mode=WLAN.STA)
# go for fixed IP settings (IP, Subnet, Gateway, DNS)
#wlan.ifconfig(config=('192.168.0.107', '255.255.255.0', '192.168.0.1', '192.168.0.1'))
wlan.scan()     # scan for available networks
wlan.connect(ssid='your_ssid', auth=(WLAN.WPA2, 'your_password'))
while not wlan.isconnected():
    pass
print(wlan.ifconfig())
</code></pre>
<p dir="auto">I did not configure a static IP, but after the first connection to the WiFi network I specified &quot;use always the same IP&quot; in the DHCP configuraion of my Fritz box router.</p>
]]></description><link>https://forum.pycom.io/post/4925</link><guid isPermaLink="true">https://forum.pycom.io/post/4925</guid><dc:creator><![CDATA[Clemens]]></dc:creator><pubDate>Sun, 05 Mar 2017 18:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to Local file system access while connected to the home router on Mon, 06 Mar 2017 07:34:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/986">@michalt38</a> to do this you need run Wipy in mode</p>
<pre><code>WLAN.STA_AP
</code></pre>
<p dir="auto">but for me it can connect to router but i can not connect to it as AP.<br />
But i do not tested this in the current firmware - maybe it work now</p>
]]></description><link>https://forum.pycom.io/post/4939</link><guid isPermaLink="true">https://forum.pycom.io/post/4939</guid><dc:creator><![CDATA[livius]]></dc:creator><pubDate>Mon, 06 Mar 2017 07:34:39 GMT</pubDate></item></channel></rss>