Page 2 of 2

Re: Setting Up A Static IP Address

Posted: Mon May 22, 2023 3:05 pm
by Stupid Dufus

Not really familiar with WinSCP, but what if you try this?

Code: Select all

./network_ip_static_wlan0.sh

Re: Setting Up A Static IP Address

Posted: Tue May 23, 2023 3:42 am
by akeley

I tried it, but get the same "not understood" error.


Re: Setting Up A Static IP Address

Posted: Tue May 23, 2023 4:33 am
by akeley

Ok, I managed to run the script from the Linux terminal on the mister itself (F9). But, I didn't change the default values in the script first, so now I can't log in via WinSCP at all.

I suppose I should try and modify the script directly on the SD card and then run it again. Question is, what values should I use? My PC is connected to the router via ethernet and MiSTer uses wifi dongle. The script (I use the wlan0 one) requires to: "set ip address, subnet mask, standard gateway and dns server". Are these the values found in Win Settings>>Network Connections >>Ethernet>>Status>>Details?


Re: Setting Up A Static IP Address

Posted: Tue May 23, 2023 6:01 am
by yoshi41

Yes, you can use the values from the ethernet status details page.

Or from this command in the Windows cmd window...

Code: Select all

ipconfig /all

Regarding the script variables...

Code: Select all

SIA_IP=192.168.1.41
SIA_SM=255.255.255.0
SIA_GW=192.168.1.1
SIA_NS=8.8.8.8

Make sure the IP address (SIA_IP) is not in the router DHCP address pool. For the DNS server (SIA_NS) you can use 8.8.8.8 (Google DNS server).

Also make sure the script remains in "Unix (LF)" format or edit the file with Linux vi (only if you know how to use it).

network_ip_static_wlan0.png
network_ip_static_wlan0.png (48.22 KiB) Viewed 1533 times

Re: Setting Up A Static IP Address

Posted: Tue May 23, 2023 8:01 am
by akeley

Thank you for the detailed reply, yoshi41. It did help me to sort it out (even though phrases such as "DHCP address pool" still make my mind go blank and using vi was a bit scary ;) - after a few reboots the MiSTer's IP remains stable and WinSCP logs in instantly now every time.