Messages - KodeZwerg [ switch to compact view ]

Pages: prev1 2 3 [4] 5 6 7 8 9 ... 144next
16
FWIW a little bit of PowerShell:
Code: PowerShell [Select]
  1. (Get-NetAdapter -Name * -Physical | % { Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias $_.Name }) | Format-Table -Property InterfaceAlias, IPAddress

Output:
Code: Text [Select]
  1. InterfaceAlias IPAddress
  2. -------------- ---------
  3. WiFi           192.168.0.99
  4. Ethernet 3     169.254.82.44

I am working on it and get already same result within my test application but I am not that familar with PowerShell yet, your "script" works well and display me exactly what you've posted.
Now here's the $1 million dollar question, how do I need to modify your PowerShell call that it just return me the LAN IP (exclude the wrong "WiFi"-IP)?
Since you get ATM 2 results, I would not know how to seperate them, but I would be able to have them shown in my tool.
With a little help we get this thing working correct!  :-*

17
The output is looking now very wierd to me, beside localhost nothing is revealing its IP adress at all.
I am not sure if I can find a way to make you happy  :o

0x00000010 (16) (Ethernet 3)
"Realtek Gaming 2.5GbE Family Controller #2"
Info: for all ethernet-like interfaces, regardless of speed, as per RFC3635
        Link encap: ethernetCsmacd (6) HWaddr: 58-11-22-B7-AC-0B
        inet addr: Mask:
        MTU: 1500 Speed:0.00 Mbps
        Admin status:UP Oper status:NON_OPERATIONAL
        RX packets:0 dropped:0 errors:0 unkown:0
        TX packets:0 dropped:0 errors:0 txqueuelen:0
As far as I understood that is your LAN connection, but it shows in that moment no information to my app.
And when I watch on output of Project4, it uses a OPERATIONAL item
0x0000000B (11)
"MediaTek Wi-Fi 6 MT7921 Wireless LAN Card-Virtual WiFi Filter Driver-0000"
Info: radio spread spectrum
        Link encap: ieee80211 (71) HWaddr: 34-6F-24-D9-64-49
        inet addr: Mask:
        MTU: 1500 Speed:866.70 Mbps
        Admin status:UP Oper status:OPERATIONAL
        RX packets:7549 dropped:0 errors:0 unkown:0
        TX packets:5468 dropped:0 errors:0 txqueuelen:0
What is also hiding its IP  :'(    (thats why you now got a empty line)

18
No local IP reported  :)
:huh: Dang...
I've added a test application, can you show me what it is reporting to you please

19
I neither have WhatsApp nor LBC installed but to find out what .exe is getting executed when you run an application, with its path to find it on your local system, I'd suggest to install process hacker from sourceforge.
(Just one of dozens possibilities...)

20
Updated version in first post.
Should now reliable resolve local IP.
Added friendly name support and display also now in decimal the adapter number.

Pages: prev1 2 3 [4] 5 6 7 8 9 ... 144next
Go to full version