Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Connection Object / Location Property question

2 posts in General Discussion (old) Last posting was on 2000-03-21 02:21:06.0Z
Eric Pearson Posted on 2000-03-21 00:43:03.0Z
Newsgroups: sybase.public.easerver
From: "Eric Pearson" <epearson@jps.net>
Subject: Connection Object / Location Property question
Date: Mon, 20 Mar 2000 16:43:03 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 64.14.6.154
Message-ID: <347_DSSWO8sk$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26042
Article PK: 156049

Can you put an IP address in the Location Property of the Connection Object
when using the Jaguar driver?
string ls_ip_address
ls_ip_address = //some valid ip address
ex. location = "iiop//"+ls_ip_address+":900"

This all works fine when I use an alias in the hosts file.

Reason for this:
I want to avoid using a hosts file when I deploy my PB client app which
connects to Jaguar over the internet. I get the IP address into a string
variable from a NSLookup call we make in a dll. The ip address comes back
fine but after I try to stuff it in the location instead of an alias from
the hosts file it gpf's or gives cannot create instance message. Even if I
hardcode an IP it does not work. Any help would be appreciated.

Thanks
Eric


Scott McReynolds [Sybase] Posted on 2000-03-21 02:21:06.0Z
Newsgroups: sybase.public.easerver
From: "Scott McReynolds [Sybase]" <scottmc@sybase.com>
Subject: Re: Connection Object / Location Property question
Date: Mon, 20 Mar 2000 19:21:06 -0700
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 158.159.8.18
Message-ID: <347_1Uw6o0tk$GA.111@forums.sybase.com>
References: <347_DSSWO8sk$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26040
Article PK: 156047

Eric,

This should work. Be sure that you have only one listener listening on
either the ip address or the hostname. If you have one on Localhost and one
on the host name this can cause the problem you are seeing.

Scott

"Eric Pearson" <epearson@jps.net> wrote in message
news:DSSWO8sk$GA.201@forums.sybase.com...
> Can you put an IP address in the Location Property of the Connection
Object
> when using the Jaguar driver?
> string ls_ip_address
> ls_ip_address = file://some valid ip address
> ex. location = "iiop//"+ls_ip_address+":900"
>
> This all works fine when I use an alias in the hosts file.
>
> Reason for this:
> I want to avoid using a hosts file when I deploy my PB client app which
> connects to Jaguar over the internet. I get the IP address into a string
> variable from a NSLookup call we make in a dll. The ip address comes back
> fine but after I try to stuff it in the location instead of an alias from
> the hosts file it gpf's or gives cannot create instance message. Even if
I
> hardcode an IP it does not work. Any help would be appreciated.
>
> Thanks
> Eric
>
>