Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3755

Getting the NetworkInterface for "0.0.0.0" (all)

$
0
0

You can start a WebApp with the parameter: “–NetworkInterfaceIndex=0.0.0.0”

But if you want to write your own Server/Console App and specify the “0.0.0.0” Interface on the command line, how to do this?

This code lists only the loopback and the network interfaces:

PRINT System.NetworkInterface.Loopback.IPAddress

FOR i AS Integer = 0 TO System.NetworkInterfaceCount - 1
PRINT System.NetworkInterface( i ).IPAddress
NEXT i

I think, the “all interfaces” Network Interface should be available like the “System.NetworkInterface.Loopback.IPAddress” - or have I missed something?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3755

Trending Articles