I'm new to Xamarin Forms and C#. I'm working on a Xamarin Forms project and I want to write a function to get the IPv4 of the computer that I use for coding, not the virtual machine.
            Asked
            
        
        
            Active
            
        
            Viewed 59 times
        
    1
            
            
        - 
                    1Hi! I don't know if there is a direct way of doing so. The app doesn't know if it's running on a VM or a real machine. The IP configuration of the VM can be the same that your machine, it can be inside the same subnet, or in a whole different network range. – Juan Sturla Oct 28 '21 at 11:08
- 
                    1Try either [this](https://stackoverflow.com/q/6760585/199364) or [this](https://stackoverflow.com/q/42904584/199364). – ToolmakerSteve Oct 30 '21 at 01:16
- 
                    1@ToolmakerSteve Thank you, this is what I'm looking for – Celty Oct 30 '21 at 02:41
- 
                    This question has been answered [here](https://stackoverflow.com/questions/55313149/xamarin-forms-get-device-ip-address) :) – Axemasta Oct 31 '21 at 21:19
 
    