Java APIs: cannot connect to server on virtual machine
Posted: Wed Jul 06, 2016 9:24 am
Hi there,
I'm considering deploying an OMERO server and use JAVA APIs in a program that I already wrote to access it. To test if this solution will answer my needs and to get the basics I installed the OMERO 5.2.4/ICE 3.5 server on a virtual machine running Ubuntu 14.04 LTS.
I managed to install the server and deploy OMERO.web and everything is working perfectly: I can connect through OMERO.web from both the guest and the host (by the way, the walkthrough is very well done considering that I've never worked before with linux and this was the first server I installed ). Then to play a bit with the Java APIs I wrote a little project in ECLIPSE that would connect to the server and display the number of projects owned by the omero_user. When I run it in the virtual machine everything works fine problems arise when I try to run it from the host OS (Windows 10). I think that the problem is related to the server hostname as port, usermame and password would be the same. So far, what I tried was to get the IP of the virtual machine, assign it a name in the ../drivers/etc/hosts file and then use this name as the server hostname. This is obviously not working, any suggestion?
I'm considering deploying an OMERO server and use JAVA APIs in a program that I already wrote to access it. To test if this solution will answer my needs and to get the basics I installed the OMERO 5.2.4/ICE 3.5 server on a virtual machine running Ubuntu 14.04 LTS.
I managed to install the server and deploy OMERO.web and everything is working perfectly: I can connect through OMERO.web from both the guest and the host (by the way, the walkthrough is very well done considering that I've never worked before with linux and this was the first server I installed ). Then to play a bit with the Java APIs I wrote a little project in ECLIPSE that would connect to the server and display the number of projects owned by the omero_user. When I run it in the virtual machine everything works fine problems arise when I try to run it from the host OS (Windows 10). I think that the problem is related to the server hostname as port, usermame and password would be the same. So far, what I tried was to get the IP of the virtual machine, assign it a name in the ../drivers/etc/hosts file and then use this name as the server hostname. This is obviously not working, any suggestion?