processing-docs
processing-docs copied to clipboard
Syntax for Network Server "host" Please
Issue description
I am not able to set the "host" for a processing network server.
I have a lap top computer and ipconfig returns several NICs some of which I think were created after I recently installed WireShark.
When I run myServer = new Server(this, myPORT); The server is set up on a port number 169.254.11.110 which is not a real NIC. The DOS command ipconfig shows that "Ethernet 2" is the adapter which has this IP address.
When I try to add the "host" paramter to the server I get error. myServer = new Server(this, myPORT, "Wi-Fi"); I get the an unknown host exception: Wi-Fi. What is the syntax I am to use for the "host" ?
URL(s) of affected page(s)
https://processing.org/reference/libraries/net/Server.html
Proposed fix
My sketch is here: https://github.com/ForrestErickson/Processing-ServerComeAndGoes
I found I could go into Windows control panel Network Connections and disable the Npcap adapters and then the program could connect to WiFi but not when I tried to use a "host" argument.
Would still like to know how to use the "host" argument.
While I'm figuring this out, here's the source code for reference: https://github.com/processing/processing/blob/master/java/libraries/net/src/processing/net/Server.java
Looking at the code i could not intuit anything further to try regarding how use host argument to set the NIC.