I have searched around very hard all through the web etc... to find a solution to this but have not found anything so i'll try the forum.
I am using Nyartoolkit to track an AR marker coming in through my webcam on my macbook pro (snow leopard). No problems there, but when I try and use this program as a server to transmit the coordinates of my marker to another program (which will eventually be on another computer), this does not work. I know that my client program is working because I used the examples and the example SharedCanvasServer program will transmit data to my client program. I essentially cloned the Server example and put it into my code with the AR toolkit, but every time I run the program I get an error:
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at processing.net.Server.<init>(Server.java:68)
at ar_test_2.setup(ar_test_2.java:94)
at processing.core.PApplet.handleDraw(PApplet.java:1571)
at processing.core.PApplet.run(PApplet.java:1496)
at java.lang.Thread.run(Thread.java:637)
This has been giving me trouble (and I think) not allowing my server program to transmit that data it needs to... Any help would be appreciated and I can post the source of my programs if needed.
-Evan
ps- btw: I'm trying to get the coordinates of the marker so that I can tape the marker to some video goggles I have and perform head tracking... the other computer will do the graphics rendering + output to video goggles while my macbook pro handles the webcam + tracking :D