cofiguring IP address instead of HOSTNAME [message #396657] |
Tue, 07 April 2009 08:32 |
nasir_mughal
Messages: 122 Registered: April 2007 Location: Karachi
|
Senior Member |
|
|
Hi
I have purchased LIVE IP on my application server to access it anywhere on the internet.I am calling application on the internet as
http://192.168.1.56:7778/forms/frmservlet?form=abc.fmx
And its working perfectly.
I have configured Sigle Sign On and using this code on "When-Button-Pressed" to call report
WEB.show_document('/reports/rwservlet?server='||:PARAMETER.reps
||'&ssoconn=default/oracledb/userid'
||'&report='||repid
||'&desformat=PDF'
||'&destype=CACHE'
||'&pyear='||:PARAMETER.pyear
||'&branch='||:PARAMETER.branch_id
||'&bk='||:transactions.book
||'&sno='||:transactions.srno
||'¶mform=no'
,'_blank');
From Client side When i press button "sigle sign on authentication page" of Internet Directory is not coming. Because URL is accessing the application server using the HOSTNAME of application server instead of IP ADDRESS
like this
How can i configure it to use only IP address.
Thanks in advance.
[Updated on: Tue, 07 April 2009 08:42] Report message to a moderator
|
|
|
|
|
|
Re: cofiguring IP address instead of HOSTNAME [message #396914 is a reply to message #396893] |
Wed, 08 April 2009 06:53 |
nasir_mughal
Messages: 122 Registered: April 2007 Location: Karachi
|
Senior Member |
|
|
i can't hard code the IP address in URL as there are two lan cards in my application server one for accessing it from lan and other for the internet.
i mean for accessing report server from lan the URL would be
http://localip:7778/rwservlet?server=repser
and to access it from internet the URL would be as
http://staticip:7778/rwservlet?server=repser
|
|
|
|
|
|
|
Re: cofiguring IP address instead of HOSTNAME [message #396936 is a reply to message #396933] |
Wed, 08 April 2009 07:30 |
nasir_mughal
Messages: 122 Registered: April 2007 Location: Karachi
|
Senior Member |
|
|
No, They can only access using IP ADDRESS.
thats why i am asking, is there any way to configure OID to use only IP ADDRESS instead of HOSTNAME of application server when displaying "SIGLE SIGN AUTHENTICATION PAGE".
please help me
Thanks
|
|
|
|
|
Re: cofiguring IP address instead of HOSTNAME [message #396951 is a reply to message #396946] |
Wed, 08 April 2009 08:31 |
nasir_mughal
Messages: 122 Registered: April 2007 Location: Karachi
|
Senior Member |
|
|
You are not getting my point. As i said i have purchase LIVE IP to access my application sever from anywhere on internet, they are using this LIVE IP to connect and its working fine.
i have configured sigle sign on. i have set "ssomode=false" in formsweb.cfg file and have set "SIGLESIGNON=YES" in rwservlet.properties file.
when we run report OID server retrieves the "SINGLE SIGN ON AUTHENTICATION PAGE" using the HOSTNAME of application server.
so its working fine in lan because we are able to access application server in the lan using HOSTNAME.
But for internet clients they can only access application server using LIVE IP and not HOSTNAME.
so how can i configure OID to display "SINGLE SIGN ON AUTHENTICATION PAGE" using IP ADDRESS.
kindly help me.
|
|
|
Re: cofiguring IP address instead of HOSTNAME [message #396958 is a reply to message #396951] |
Wed, 08 April 2009 08:48 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
Well, you would to go through your application code and configuration, and replace every instance of the server name with the IP address.
Another option would be:
Add the IP Address / Servername pair to the C:\WINDOWS\system32\drivers\etc\hosts (or /etc/hosts ) file on the client machines, or to get a DNS entry for the IP added somewhere, possibly in a place like www.dyndns.com.
Isn't there an option to add a DNS entry wherever you did this "I have purchase LIVE IP" thing?
Then you could have the same DNS servername pointing to the external address from the internet, and to the local address from the LAN.
|
|
|
Re: cofiguring IP address instead of HOSTNAME [message #396970 is a reply to message #396958] |
Wed, 08 April 2009 09:23 |
nasir_mughal
Messages: 122 Registered: April 2007 Location: Karachi
|
Senior Member |
|
|
>>Add the IP Address / Servername pair to the C:\WINDOWS\system32\drivers\etc\hosts (or /etc/hosts ) file on the client machines
thanks for help.
i have completely understood what you have said. will you please explain more, how this will be going to work.
|
|
|
|
|
|
|
|
|
Re: cofiguring IP address instead of HOSTNAME [message #502566 is a reply to message #502543] |
Thu, 07 April 2011 06:22 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I think you are describing a similar problem that I have had to deal with a couple of times with Collaboration Suite: Your SSO server is in a secure area of the network, where internet users cannot get to it. The answer was to configure the Web Cache on the Application Server middle tier instance to forward requests from the internet to the SSO server.
Can you use your middle tier web cache in the same way, to forward all requests from the internet to the appropriate internal service?
|
|
|
Re: cofiguring IP address instead of HOSTNAME [message #502582 is a reply to message #502566] |
Thu, 07 April 2011 07:21 |
nasir_mughal
Messages: 122 Registered: April 2007 Location: Karachi
|
Senior Member |
|
|
Oracle internet directory / application server midle tier are on the same machine.
There are two enteries in hosts file on the client side to connect client to application server.
192.XXX.XXX.A myhost
192.XXX.XXX.B myhost
our client can connect to our application through first IP (192.XXX.XXX.A) when communication for this IP is there. There is no problem.
What i want is that when communication for first IP (192.XXX.XXX.A) stops, clients should be able to connect through (192.XXX.XXX.B)
This error is occurs only when communication for first IP stops working.
Also this has been taken from oracle application server installation guide.
Quote:
4.8.2 Installing on Multihomed (Multi-IP) Computers
You can install Oracle Database on a multihomed computer. A multihomed computer is associated with multiple IP addresses. This is typically achieved by having multiple network cards on the computer. Each IP address is associated with a hostname; additionally, you can set up aliases for the hostname. By default, Oracle Universal Installer uses the ORACLE_HOSTNAME environment variable setting to find the hostname. If ORACLE_HOSTNAME is not set and you are installing on a computer that has multiple network cards, Oracle Universal Installer determines the hostname by using the first name in the hosts file (typically located in DRIVE_LETTER:\WINDOWS\system32\drivers\etc).
Kindly help
|
|
|
|
|
|