processing-docs icon indicating copy to clipboard operation
processing-docs copied to clipboard

Syntax for Network Server "host" Please

Open ForrestErickson opened this issue 6 years ago • 4 comments

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

ForrestErickson avatar Aug 30 '19 13:08 ForrestErickson

My sketch is here: https://github.com/ForrestErickson/Processing-ServerComeAndGoes

ForrestErickson avatar Aug 30 '19 13:08 ForrestErickson

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.

ForrestErickson avatar Aug 30 '19 13:08 ForrestErickson

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

REAS avatar Nov 22 '19 19:11 REAS

Looking at the code i could not intuit anything further to try regarding how use host argument to set the NIC.

ForrestErickson avatar Dec 04 '19 17:12 ForrestErickson