I just deployed an instance of OpenMary TTS server on my Windows 2012 Azure VM and configured ttp endpoints for both port 80 and the default 59125 ports. I've tried launching mary server using both ports and I can't access it externally using either the DNS name or the external IP. I installed IIS on the same host and I am able to access the default page remotely so I know it is not an Azure configuration issue, rather something in OpenMary causing it to only accept requests coming from the loopback IP or localhost.
Is there a hostname setting I can supply on the cmd line via java property? I can change its port name via -Dsocket.port= setting but how do I tweak the host name it listens on? Does it make sense to set the server up behind IIS?
in the Windows Azure Portal, you need to configure the end point mapping.
Related
I am new to Jenkins and I have been trying to access my Jenkins server from the Internet, so that you can access it from anywhere.
I set up a no-ip DNS server to be able to bind my public ip and create a Hostname which I added Jenkins URL, but I can't access it. Do I have to add any additional configuration to Jenkins? Could someone guide me how to access it? I am really new to this.
Note: Adding port 8080 to my firewall allows me to access my localhost from any device I have on my network.
Note 2: I am using Windows 10.
You should first check if it's accessible with IP and port from the Internet. If it's not you should configure your network to allow the port and route it to the server.
Your network router has to be configured to route the incoming requests on the given port from the Internet to your server. Or your server must have a public IP assigned.
Open a windows command prompt, and execute command ipconfig to see the IP addresses assigned to the system, if you don't see your public IP here that means your system is behind a router, and without proper router configuration this system can't be accessed from the Internet.
If your system receives its IP from a router, that router must be accessible from the Internet, meaning that router should be directly connecting to the Internet, and it must have "Port Forwarding" feature through which it can be configured to forward the incoming requests to a host in its network. Or if you can connect to the Internet directly without a network router from your system it will have a publicly accessible IP address.
This is the first time I set up a home web server and I use Glassfish for this.
I already did port forwarding to the computer in router I use as server.
I changed the port of glassfish( using netbean ) to 80
I changed address in network listener to the current ip address (192.168.1.xxx) that router forwards to
I don't know what I need to do next. what I am trying to do is that when I type router ip address into browser, it will be able to see my welcome page. However, what I've got so far is connection time out error.
My question is how can I config (my machine, glassfish server) to make it possible to access to glassfish server.
I am working on some project for that using spring 3.2.0. Whenever I run project it looks like
http://IpAddressWithPortNo.com/myprojectName.com/
IpAddressWithPortNo = localhost : 8080
I want to hide localhost:8080 or ip address.
Is there any method available to map this ip to my project?
http://myprojectName.com
I am using apache tomcat 7.0 and fedora 17.
The solution doesn't involve configuring Spring, but the hosts file of your operating system. On Ubuntu, it is found at /etc/hosts, I'm not sure if its the same for Fedora, but it should be.
You just need to add a line in the hosts file that looks like the following:
127.0.0.1 myprojectName.com
That's it. You then access the myprojectName.com address in your browser and it will look at your localhost, behind the scenes.
The above solution works if you only need name resolution for your local machine.
If you'd like to expand to your local or external network, the answer is less trivial:
for your local network, you need to register a custom domain on your network DNS server (see this and this for more information); if you have a network administrator, direct this requirement to him, explaining that you want to expose your local ip through a custom domain name
if you want to expose this name to the entire internet, you have to register the custom domain to a DNS registration service (you can find free DNS services as well, unfortunately I haven't used any lately and dyndns.org doesn't provide free dns service anymore, try searching free dns service on google and lookup some reviews)
The :8080 will go if you configure Tomcat to respond on port 80, or https on port 443.
You can use any host name that resolves to your network address. For instance if your machine name on the local network is athena.mycompany.com then http://athena.mycompany.com/myProjectName should work fine - but only within the local network.
To get to http://myprojectName.com you will need to configure a firewall/router to forward an incoming request (presumably from the Internet) to your machine. Internal access will likely not resolve this URL.
Gabriel has just posted an answer that should work from your machine, but other machines within your intranet would also require entries to map that name to your machine.
For doing exactly what you want, you need to configure apache tomcat to listen on port 80 and tell your operating system that myproject.com resolves to localhost.
To resolve myproject.com to localhost, add the following to your /etc/hosts file:
127.0.0.1 myproject.com
To change the port number to 80, open /usr/share/tomcat7/confserver.xml or /etc/tomcat7/server.xml (whichever applies to your system) and change Connector port = 8080 to Connector port = 80.
I have a tomcat7.0 running in a remote desktop machine say 204.34.34.45.
When I log into the remote desktop and try "http://localhost:8080" it is working fine.However
http://204.34.34.45:8080 is not working.
I am able to ping 204.34.34.45 from outside the remote desktop machine.
Do you know how can I access tomcat outside the remote desktop machine.
The firewall rules for that host may not allow connections to 8080. Talk to your system administrator for details.
Also, make sure you have the correct IP bindings set up for tomcat. It is possible to allow connections to localhost:8080, but disallow them from 204.34.34.45:8080. See How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?
How to make my computer as a server so I run the application on IDE and be accessible by other computers on same network via their browsers?
If your server local ip for example is 192.168.1.20 and your web server port is 8080 then you can access your server by giving IP:PORT in the browser
eg: 192.168.1.20:8080/index.jsp
You can't make "localhost" accessible, by definition. What you can do instead is have the server process listen on an external IP address (or all addresses) instead of just on the loopback address. We can provide a more specific answer if you'll tell us how you're launching the application server.