Home > other >  C # for the native LAN IP
C # for the native LAN IP

Time:10-06

If inscribe
Get to have multiple ipv4 IP address, and I want to get the open hot or even the LAN IP
If they are 192.168.? .? There are other forms
My host IP is 172.169.4.? And 192.168? .? (Internet and WiFi)

Thank you for your bosses answered

CodePudding user response:

Assuming the form of IP is A.B.C.D
To meet
 A==10 | | (A==172 & amp; & B>=16 & amp; & B<=31) | | (A==192 & amp; & B==168) 

Is the private IP network

CodePudding user response:

reference 1st floor Runnerchin response:
assumes the form of IP is A.B.C.D
To meet
 A==10 | | (A==172 & amp; & B>=16 & amp; & B<=31) | | (A==192 & amp; & B==168) 

Is a private network IP

If such as my home computer connected to the router (automatically assigned address), at the same time connected to wifi will have several such address

CodePudding user response:

Each connection of at least one,

CodePudding user response:

reference 1st floor Runnerchin response:
assumes the form of IP is A.B.C.D
To meet
 A==10 | | (A==172 & amp; & B>=16 & amp; & B<=31) | | (A==192 & amp; & B==168) 

Is a private network IP


(wifi IP phone even) & amp; & (computer even wifi or routing assigned address)
This address is only 192.168

CodePudding user response:

What is your demand? Find the WIFI IP? Or find all computer LAN IP?

CodePudding user response:

reference 5 floor Runnerchin reply:
what is your demand? Find the WIFI IP? Or find all computer LAN IP?


In order to make the computer open listening (don't know the IP),
Mobile phone or another computer connection.

Connection at this time I want to want to have the following kinds:
1 two computers had the same router (router assigns two IP addresses)
2 a computer had a router, another had wifi router (router assigns two IP addresses)
3 computers connected to the router (automatically assigned address), at the same time connected to wifi, another had a router wifi
When the host opens to monitor what IP?

CodePudding user response:

reference 5 floor Runnerchin reply:
what is your demand? Find the WIFI IP? Or find all computer LAN IP?

Is now a list of all the IP on the UI
But like fast teeth file transfer software is not

CodePudding user response:

By the fixed a computer to act as a server?
As long as even under the same router, you can direct communication, your server WIFI address and the address of the Ethernet cable is no problem,
Have two choices, one is for the computer allocation of fixed IP address, DHCP static reservations, another option is confirmed by the client and the server communication IP, server send broadcast to inform the client own IP, or UDP broadcast for the client by the server, the server after received reply,

CodePudding user response:

refer to the eighth floor Runnerchin response:
by fixed a computer to act as a server?
As long as even under the same router, you can direct communication, your server WIFI address and the address of the Ethernet cable is no problem,
Have two choices, one is for the computer allocation of fixed IP address, DHCP static reservations, another option is confirmed by the client and the server communication IP, server send broadcast to inform the client own IP, or UDP broadcast for the client by the server, the server after received reply,

Listen to not understand, but thank you very much. I was too stupid

CodePudding user response:

I also need this, learn from masters!
  • Related