Home » RDBMS Server » Server Administration » cofiguring IP address instead of HOSTNAME (application server 10.1.2.0.2, windows 2003 server R2)
cofiguring IP address instead of HOSTNAME [message #396657] Tue, 07 April 2009 08:32 Go to next message
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	
	        	  ||'&paramform=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
http://jibran:7778


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 #396868 is a reply to message #396657] Wed, 08 April 2009 03:51 Go to previous messageGo to next message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member


Please don't post IP details.

Babu
Re: cofiguring IP address instead of HOSTNAME [message #396891 is a reply to message #396868] Wed, 08 April 2009 05:42 Go to previous messageGo to next message
nasir_mughal
Messages: 122
Registered: April 2007
Location: Karachi
Senior Member
Ok

Do you have any thing to say about to the problem?
Re: cofiguring IP address instead of HOSTNAME [message #396893 is a reply to message #396891] Wed, 08 April 2009 05:55 Go to previous messageGo to next message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member


Thanks.

I think this is releated to Oracle Forms and Reports.

ASAIK; Can you try to set static IP in your code.

Babu
Re: cofiguring IP address instead of HOSTNAME [message #396914 is a reply to message #396893] Wed, 08 April 2009 06:53 Go to previous messageGo to next message
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 #396925 is a reply to message #396914] Wed, 08 April 2009 07:11 Go to previous messageGo to next message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member


>>are two lan cards in my application server one for accessing it from lan and other for the internet.


It's ok.

From locally any one connect using ip. it's should fast only.

Try and let us know.

Babu
Re: cofiguring IP address instead of HOSTNAME [message #396931 is a reply to message #396925] Wed, 08 April 2009 07:22 Go to previous messageGo to next message
nasir_mughal
Messages: 122
Registered: April 2007
Location: Karachi
Senior Member
Locally its working fine, as i am able to access application server using HOSTNAME.

It is giving error when accessed from internet, because i can only access application server using IP ADDRESS and not the HOSTNAME.

Re: cofiguring IP address instead of HOSTNAME [message #396933 is a reply to message #396931] Wed, 08 April 2009 07:25 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Is your host name known to your internet client DNS?

Regards
Michel
Re: cofiguring IP address instead of HOSTNAME [message #396935 is a reply to message #396931] Wed, 08 April 2009 07:26 Go to previous messageGo to next message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member


>>It is giving error when accessed from internet

What's the error??

Babu
Re: cofiguring IP address instead of HOSTNAME [message #396936 is a reply to message #396933] Wed, 08 April 2009 07:30 Go to previous messageGo to next message
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 #396937 is a reply to message #396936] Wed, 08 April 2009 07:33 Go to previous messageGo to next message
nasir_mughal
Messages: 122
Registered: April 2007
Location: Karachi
Senior Member
>> What's the error??


report is not coming in browser. and it display error "Page cannot be displayed"
Re: cofiguring IP address instead of HOSTNAME [message #396946 is a reply to message #396937] Wed, 08 April 2009 08:00 Go to previous messageGo to next message
ThomasG
Messages: 3212
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
Well, no matter what else, they won't be able to access an IP address in the private 192.168.0.0/16 IP range from "the internet" anyway.

Re: cofiguring IP address instead of HOSTNAME [message #396951 is a reply to message #396946] Wed, 08 April 2009 08:31 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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 #396974 is a reply to message #396970] Wed, 08 April 2009 09:27 Go to previous messageGo to next message
ThomasG
Messages: 3212
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
It will work because the name will get resolved to the IP address you choose.

Re: cofiguring IP address instead of HOSTNAME [message #396979 is a reply to message #396974] Wed, 08 April 2009 09:33 Go to previous messageGo to next message
nasir_mughal
Messages: 122
Registered: April 2007
Location: Karachi
Senior Member
Thanks i would definitely try it and would let you know.

Thanks.
Re: cofiguring IP address instead of HOSTNAME [message #397012 is a reply to message #396979] Wed, 08 April 2009 11:06 Go to previous messageGo to next message
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

Wow It worked. Problem solved.

Thanks again.
Re: cofiguring IP address instead of HOSTNAME [message #502485 is a reply to message #397012] Wed, 06 April 2011 10:58 Go to previous messageGo to next message
nasir_mughal
Messages: 122
Registered: April 2007
Location: Karachi
Senior Member
Hi

recently we have added another network card in our application server machine and bought another LIVE IP from another ISP.

Now there are three network cards in our application server machine.
One for local network (intranet).

Two other for accessing our application server on the internet.
>>For these two we have bought two LIVE IP addresses from two different ISPs. Idea is that if anything happens to one of these our clients could access our application by second LIVE IP.

I have added these two enteries on our clients machine's host file
192.XXX.XXX.A           myhost
192.XXX.XXX.B           myhost       


URL to access application sever on client machine is
http://myhost:7778/forms/frmservlet?config=default


It works fine when our client can access it by first IP(192.XXX.XXX.A) in the host file.
But when it stops working they should be able to access it with second IP (192.XXX.XXX.B) but its not happening .
And after entering login information following error displyed in applet.

java.lang.ClassNotFoundException: oracle.forms.engine.Main


Kindly help what is the solution of this problem
  • Attachment: 1.JPG
    (Size: 16.71KB, Downloaded 863 times)
Re: cofiguring IP address instead of HOSTNAME [message #502487 is a reply to message #502485] Wed, 06 April 2011 11:02 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
do you have 3-tier application?
EndUser<=>browser<=>WebServer<=>ApplicationServer<=>DatabaseServer
Re: cofiguring IP address instead of HOSTNAME [message #502543 is a reply to message #502487] Thu, 07 April 2011 02:41 Go to previous messageGo to next message
nasir_mughal
Messages: 122
Registered: April 2007
Location: Karachi
Senior Member
Yes.
Re: cofiguring IP address instead of HOSTNAME [message #502566 is a reply to message #502543] Thu, 07 April 2011 06:22 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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
Re: cofiguring IP address instead of HOSTNAME [message #502749 is a reply to message #502582] Fri, 08 April 2011 14:59 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
As I said before, you can use your Web Cache. Configure it to listen on both addresses, and forward requests to the address your http server is listening on.
Re: cofiguring IP address instead of HOSTNAME [message #504430 is a reply to message #502749] Mon, 25 April 2011 05:06 Go to previous messageGo to next message
nasir_mughal
Messages: 122
Registered: April 2007
Location: Karachi
Senior Member
I was seaching for how to configure Web cache to listen on two IP addresses, but failed. Can anyone help me how to configure it.

Thanks.

[Updated on: Mon, 25 April 2011 05:07]

Report message to a moderator

Re: cofiguring IP address instead of HOSTNAME [message #504445 is a reply to message #504430] Mon, 25 April 2011 06:45 Go to previous message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Read your Web Cache Administrators Guide. Chapter 8.
Previous Topic: Upgrading from 10.2.0.1 to 10.2.0.4
Next Topic: Upgrade from 11.0.6 to 11.0.7 (3 Merged)
Goto Forum:
  


Current Time: Fri Nov 29 06:36:41 CST 2024