Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkInterface properties aren't showing the correct data #880

Closed
josesimoes opened this issue Nov 5, 2021 · 1 comment · Fixed by nanoframework/nf-interpreter#2145

Comments

@josesimoes
Copy link
Member

Details about Problem

.NET nanoFramework library: System.Net

Target: ESP32

Device capabilities output:

Description

After successfully getting an IP address from a DHCP server the IP data is not updated properly.

Detailed repro steps so we can see the same problem

Run this code:

NetworkHelper.ConnectWifiDhcp(MySsid, MyPassword, setDateTime: true, token: cs.Token);
(......)
 var myNI = NetworkInterface.GetAllNetworkInterfaces();

            foreach(var ni in myNI)
            {
                Debug.WriteLine($"IP: {ni.IPv4Address}");
            }

Output is:

IP: 127.0.0.1
IP: 0.0.0.0

Other suggested things

Expected behaviour

IP information should be correct and showing the assigned IP from the DHCP server.

Sample Project

Screenshot

Additional context

I've made an effort to fix the bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants