We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Network library - Changing Server IP
Page Index Toggle Pages: 1
Network library - Changing Server IP (Read 651 times)
Network library - Changing Server IP
Oct 26th, 2009, 1:39am
 
Hi,

My PC is currently connected via ethernet to the Internet, with a separate connection to a WiFi access point (private network). I wish to create a server on the private network, but using

Code:
myServer = new Server(this, port);

connects to the ethernet IP address. Is there a way to specify that the server should connect to the private wifi IP address range?

Regards,
Gerrit
Re: Network library - Changing Server IP
Reply #1 - Oct 27th, 2009, 3:09pm
 
Unless I am mistaken, the new Server() doesn't connect to an IP address, the server will listen on the given port.
You specify the IP address to connect to in the Client constructor.
Page Index Toggle Pages: 1