Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Joshua Chapman
839 PointsHow can I use Java sockets to connect devices over ethenet?
I'm currently trying to use the following 2 scripts to connect 2 devices via ethenet.
https://github.com/astub/SimpleSocket-Example/blob/master/SOK_1_SERVER.java
https://github.com/astub/SimpleSocket-Example/blob/master/SOK_1_CLIENT.java
Currently this only works when both scripts are run on the same machine. How can I adapt these scripts so that this works over an ethenet connection?