How to change domain name from "LocalHost" to ipaddress in Jdeveloper? - oracle11g

When i run any application from JDeveloper, the page opening with the URL keeping "LocalHost" as a domain name,
eg: http://localhost:7101/Testing/faces/index.jsf
How can i change the domain name from "localHost" to my system's ipaddress. So that whenever i execute the page, the page should open with the ipaddress and not with "localhost", like http://10.34.65.175:7101/Testing/faces/index.jsf
Thanks

Deploy your application on the WLS that is located on 10.34.65.175. Any reason you don't want to use localhost?

As Sydney asked, why would you want this?
The only reason I could think of is that you want other users (within the same network as you) to access your WLS. If so you can do the following:
Go to your admin console (htpp://localhost:7101/console)
Click on 'Environment'
Click on 'Servers'
Click on 'DefaultServer(admin)'
In 'Listen Address' enter your local IP
Reboot your WLS and it should be accessible by other users on http:// your_local_ip:7101/Testing/faces/index.jsf

Related

Can't access IIS domain name

i am trying to publish my website in IIS but when i try to ping the domain name it will give this instead of local host
This how i created the site
datingapp.com domain is mapped to IP 72.52.4.119 which you can confirm using this link
If you want to point datingapp.com domain to your localhost, you need to add an entry in host file which can be found at C:\Windows\System32\drivers\etc on Windows operation system.
Open host file using any text editor in administrator mode and add the following:
127.0.0.1 datingapp.com

Adding Hostname to servers hosts file still doesn't work

On server: I go to start -> run and type "drivers" change to the etc directory you want to edit the hosts file.My website was seen when i go from iis(from the server) Right click websitename>Manage website>Browse.
On local computer: (This computer can access the server)I open browser>type the hostname on url , i can't view the website. How to resolve this?
Please check the following:
Under IIS (inetmgr), is application binded with any IP?
If answer to #1 is YES, use that IP in your host file. If NO, you can
either use user machine IP or localhost (i.e. 127.0.0.1).
Thank you

how to configure IIS for a specific website nam

Hi everyone,
I have configured my web application using IIS7. It is running fine for http:// localhost/, but I need to give some website name like http://myexamsystem.com/
instead of "localhost".
I have tried all the possible ways from IIS7, but I am not getting the result.
Steps I did upto now:
Step 1: Right Click on "Sites".
Step 2: Selected "Add Website" option.
Step3:In "Add web site" dialog box:
Site Name:"myexamsystem", Application Pool: "DefaultAppPool"
Physical path: "desktop\myproject folder"
Binding
Type:HTTP, Ip address "All Unassigned", Port:80
Host Name: "myexamsystem.com"
OK
Error Messege:
This page can't be displayed
•Make sure the web address http://myexamsystem.com/ is correct.`
If this is just for debugging / local development, then you'll need to add an entry in your HOSTS files. This is located:
c:\windows\system32\drivers\etc\hosts
It can be edited in notepad (if you have administrator rights on your machine). You just add the following entry:
127.0.0.1 myexamsystem.com
Note that this will only work locally. If you want it public, then you'll need to buy the domain name and point it to an external IP address.
Update
Just seen your comment about it needing to run on your local network. A quick way is to add your internal network IP address to each machine's HOSTS files. You can find out your internal IP address by typing ipconfig into the command prompt. Then add it to the HOST file of the other machines in the same way as I descibed above, except use your internal IP in their HOST file rather than 127.0.0.1.
If you don't want to manually add them to each computer, then as far as I know, you'll need a DNS server.

Unable to determine IP address from host name, The domain name does not exist

A local website is set up on a server.
The website test.skien.kommune.no is mapped to 127.0.0.1
The site is configured in IIS and I have added a binding.
Everything worked for a week, but today I suddenly got this error message:
The following error was encountered while trying to retrieve the URL: http://test.skien.kommune.no/
Unable to determine IP address from host name "test.skien.kommune.no"
The DNS server returned:
Name Error: The domain name does not exist.
This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.
Your cache administrator is webmaster.
The hosts-file is configured '127.0.0.1 test.skien.kommune.no'
Why doesn't it use the local dns-mapping in the host-file?
I found that the proxy settings were my problem.
In Windows "Control Panel" open "Internet Options" and go to the "Connections" tab. Click the "LAN settings" button.
If "Use a proxy server" is ticked, this may be your problem too. If there are periods in the local host domain, the proxy kicks in and treats the URL as a fully qualified domain name (which it won't be able to find).
To exclude it, click on "Advanced" and add it to the "Do not use proxy..." list.
Check for any VPN. if you have enabled any VPN in chrome then disable it.
Quoting #leo est omnia's answer, it might be possible that your browser would be treating your virtual host as a fully qualified domain when proxy server is ticked.
Adding to the answer,you also have these settings for the browser you are using, like for "Chrome":
settings => advanced settings => network => change proxy settings => connections => lan settings => uncheck use proxy server.
Also, if you have done some changes in your "httpd.conf" file, if you have given "\" backslash for directory path for the default path for your local apache files, use "/" forward slash instead, apache reads it the linux type.
This is the whole story
You should not use a proxy
Your proxy may have occurred through a browser extension, or you may have saved something in the system settings

Getting site running in IIS 7 Issues

This is driving me nuts. I am trying to setup a webiste on our dev server with a specific url name www.mystpidsite.com as an example. mystupidsite is not the same name as the dev server.
1) specify a specific url to use for the website I create in IIS
2) run it and use that url to access it
I have:
1) created a new site in IIS 7 in Server 2008
2) attempted to access it via the site name which I set to the desired url and port 8888. So if we want it to be www.mystupidsite.com I setup the website name to mystupidsite in IIS 7.
3) I even tried to create an application under mystupidsite with the same name in IIS 7.
The server is definitely accessible and pingable on the network from my local PC, we have other stuff installed on this new server. Do I need to create an application or is just creating the website enough in IIS 7? I specified the IP as the server's IP in the website I made.
For the host name in the bindings of the site I put www.mystupidsite.com
when I try to access the site via www.mystupidsite.com it can't find it and the site in IIS7 on the dev server is running. It's running on a HyperV instance which is our dev server. Everything else has worked just fine. I just wnat to understand how to get a specific url by name setup.
Do I need to add something in the hosts file on the server or something?
You're not going to be able to have a site on your dev box answer to both the mystpidsite.com and mystupidsite.com domain names.
Unless you have the domains registered and have your domain's nameserver directing that name to your dev machine, IIS is only going to answer to requests either the machine name on the network or the IP address of your machine (in addition to 127.0.0.1 and localhost).
The only thing you're going to be able to do outside that scenario is set up two sites on two different ports on your machine and access them from http://localhost:80 and http://localhost:8888 (or network computer name equivalent).
you need to have an entry in dns to be able to hit the server when using www.mystupidsite.com
Because you have the site running on an alternate port you should be able to get to it by http://your-server-IP-address:8888
If you want to test it locally using the host name and do not have access to dns you can add the appropriate entries to the hosts file on your local machine (c:\windows\system 32\drivers\etc\hosts)
What happens when you type 'nslookup www.mystupidsite.com'? Do you get the IP address of the virtual server?
Do you have the windows firewall enabled on the server? if so, did you add an exception for port 8888?
add a default binding (no host header / blank) and try accessing it by IP

Resources