This might sound a very basic question for the N/W gurus so please try to help me here.
I have developed a simple Webservice in Java and deployed it on a local machine using Eclipse/Ant. The path looks like this -
http://localhost:8284/myws?wsdl
Now, I have provided a static IP for the local machine say XX.XX.XXX.XX and I can ping it from any remote machine over internet.
In my Java program, I have provided endpoint name as -
"http://localhost:8284/myws" and it works fine on local machine and opens the wsdl just fine in a browser.
Now, I want to deploy this webservice in a way that, I can access it remotely using my static IP i.e XX.XX.XXX.XX
Problem 1:
When I try to assign the endpoint as
"http://XX.XX.XXX.XX:8284/myws" my Java program gives error saying
Server Runtime Error: java.net.BindException: Cannot assign requested address: bind
Problem 2:
If I deploy it as "http://localhost:8284/myws", I am not able to access it over internet using URL like http://XX.XX.XXX.XX:8284/myws?wsdl.
Things I have did so far - -
a. Turned off the firewall
b. Created 2 rules inbound/outbound with port 8284 allowed.
My question is, will I need a router to do a port-forwarding thing? Or will I need an IIS to deploy it?
I really want to ignore both of them. If there is any simple way to do that please let me know. Am I missing something? I am able to ping the IP and can also connect through RDC.
Info -
Machine is on Windows 7.
Any help will be greatly appreciated.
Thanks.
I got it solved. I used http://0.0.0.0:8284/cal while binding and not localhost:8284/cal
Works like a gem now! Hope it helps someone.
Regards,
Bhushan.
Related
Sorry if this questions was already asked and answered, i just really have no clue how to ask formulate this question.
So i've got the next issue. I got the access through RDP to the machine in some private network. Also we got some services which is accessible in that private network. That service, which is basically some corporate repository is a place where some dependecies in our project pulled of from. What i trying to do is to configure this project locally, and for that purpose i need the posibility to pull that depenedencies of from that repository on my local machine. This dependecies are pulled by Maven, and as far as i understand basically during the pulling process, it's just a http requests back'n'forward process. In my thoughts, theoreticaly, i could configure somehow some sort of proxy from computer to the RDP machine, and pass all that incoming traffic to the remote machine and answer on the requests there (on the remote machine) and get answers on my local machine.
One more thing worth to mention. I use ZScaller proxy to connect to that machine via RDP. Again, from my thoughts, not that was really an issue, but just in case.
My questions, is that possible, and how can i do it? Any tips for that.
Thank you very much!
I'm running a RESTful webservice created in Eclipse Java EE using TomCat 7.0. I test it using a web browser. It will connect over the localhost, but not with the remote IP. It used to work with an IP, and then I moved my project to a Git repository so I could upload it to Github. Now it's not working for an IP. Not really sure what's up.
Any ideas? Firewalls are off too.
Bonus: I also have the small red x error icon on my project. I can't find any errors and it compiles fine and works fine as long as it's localhost. How the heck do I get rid of the x icon?
Edit: Works with a local IP. I was testing this on a college network earlier. Now I'm on a home network. Any comments?
Hope the following article helps :
www.sitepoint.com/accessing-localhost-from-anywhere
Incase you also have trouble accessing via localhost refer to all the answers for this post:
stackoverflow.com/questions/2280064/tomcat-started-in-eclipse-but-unable-to-connect-to-http-localhost8085
The question is missing many details like logs.. url and configuration for tomcat to give you a specific answer
Noob question but I'm not sure where to look:
I'm running a Java Web App on a remote linux machine (Jersey RESTful API is the goal). The server successfully runs and can handle requests locally to localhost:8080/foobar but I cannot make requests to the various urls from anywhere else (For example, my laptop through a browser).
This is a simple problem I've have many times but have no idea what terms to search on google or where to look for help debugging the problem, so any leads or advice would be greatly appreciated.
Further details:
Project is code added to a Maven2 generated archetype of a Jersey Service
This is most likely caused by firewalling on the server or in front of the internal network your server is running on. Talk to your network administrators about opening a hole for port 8080, or consider using a reverse proxy on port 80 (if open) to forward requests to port 8080. See http://en.wikipedia.org/wiki/Reverse_proxy if you are not familiar with the idea of a reverse proxy or load balancers.
Change the localhost entry in your "/etc/hosts" file, with the network configs, and if server is tomcat, edit the $CATALINA_HOME/conf/server.xml to add IP the relevant <Connector> element.
Make sure you have better idea handling /etc/hosts
I am working on an Agent based application and i want to access agents running on a container in a machine. I am using jadeGateWay to connect to Main container. It is working in localhost but when i run the jadeGateWay on a server it doesn't connect eventhough correct IP address of the jade main container are given. Can anybody suggest me a work around? Thanks in advance.
I suggest you, for the beginning, that you try to make the connection using jadegateway in the same machine, if works, try to do the same in other machine, as you want. If do not works, you could send more information about the problem.
And if you did not read yet, it's interesting read the jadegateway api on: http://jade.tilab.com/doc/api/jade/wrapper/gateway/JadeGateway.html.
I created a java desktop application. I am trying to connect this application to mysql
server database. But it is throwing socket exception. I tried in all the ways to solve this issue
but none of them worked for me. The problem which I got is mentioned in this link http://ubuntuforums.org/archive/index.php/t-849637.html
Please help me in this regard.
Will be really thankful..
According to your respnose on Oct 3'12 at 10:27, you already found out this is not Java related.
Fix your network problem:
ensure MySQL is really running
ensure you use correct IP/port
ensure no firewall is blocking traffic