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.

Mobilink over HTTP ports

4 posts in General Discussion Last posting was on 2003-10-29 15:10:25.0Z
tmalley Posted on 2003-10-27 14:51:17.0Z
Sender: 50eb.3f9d3d9e.1804289383@sybase.com
From: tmalley
Newsgroups: ianywhere.public.general
Subject: Mobilink over HTTP ports
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f9d3ef5.5114.846930886@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 27 Oct 2003 07:51:17 -0700
X-Trace: forums-1-dub 1067269877 10.22.241.41 (27 Oct 2003 07:51:17 -0700)
X-Original-Trace: 27 Oct 2003 07:51:17 -0700, 10.22.241.41
Lines: 14
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:1920
Article PK: 17387

We are currently using mobilink service to replicate our
handhelds to a consolidated database over TCP/IP. I would
like to use HTTP protocol on a defined port 8080. I am
having troubles defining the source port on the handheld
device.

When the handheld establishes a session with the mobilink
service it will send data on 8080 (source = random port,
destination = 8080), but the mobilink responds on the random
port. Our firewall will not let the random port through.
Both source and destination need to be on port 8080.

Where do you set this configuration?
Thank you.


Graham Hurst Posted on 2003-10-27 15:12:06.0Z
From: Graham Hurst <spam_guard_hurst@ianywhere.com>
Organization: iAnywhere Solutions
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.general
Subject: Re: Mobilink over HTTP ports
References: <3f9d3ef5.5114.846930886@sybase.com>
In-Reply-To: <3f9d3ef5.5114.846930886@sybase.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: hurst-xp.sybase.com
X-Original-NNTP-Posting-Host: hurst-xp.sybase.com
Message-ID: <3f9d43d6$1@forums-1-dub>
Date: 27 Oct 2003 08:12:06 -0700
X-Trace: forums-1-dub 1067271126 172.31.142.129 (27 Oct 2003 08:12:06 -0700)
X-Original-Trace: 27 Oct 2003 08:12:06 -0700, hurst-xp.sybase.com
Lines: 22
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:1921
Article PK: 17372

Use the client_port stream parameter.

Cheers,

Graham

tmalley wrote:
> We are currently using mobilink service to replicate our
> handhelds to a consolidated database over TCP/IP. I would
> like to use HTTP protocol on a defined port 8080. I am
> having troubles defining the source port on the handheld
> device.
>
> When the handheld establishes a session with the mobilink
> service it will send data on 8080 (source = random port,
> destination = 8080), but the mobilink responds on the random
> port. Our firewall will not let the random port through.
> Both source and destination need to be on port 8080.
>
> Where do you set this configuration?
> Thank you.


tmalley Posted on 2003-10-28 19:13:33.0Z
Sender: 6772.3f9ecb75.1804289383@sybase.com
From: tmalley
Newsgroups: ianywhere.public.general
Subject: Re: Mobilink over HTTP ports
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f9ecded.6794.846930886@sybase.com>
References: <3f9d3ef5.5114.846930886@sybase.com><3f9d43d6$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 28 Oct 2003 12:13:33 -0700
X-Trace: forums-1-dub 1067372013 10.22.241.41 (28 Oct 2003 12:13:33 -0700)
X-Original-Trace: 28 Oct 2003 12:13:33 -0700, 10.22.241.41
Lines: 28
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:1943
Article PK: 4181

Thank you, The client_port parameter worked, except for one
thing. I used a sniffer on the network to capture the
traffic, and both client and server are using 8080, but I am
getting traffic on 8081 also on the Handheld device. Any
idea why?

> Use the client_port stream parameter.
>
> Cheers,
>
> Graham
>
> tmalley wrote:
> > We are currently using mobilink service to replicate our
> > handhelds to a consolidated database over TCP/IP. I
> > would like to use HTTP protocol on a defined port 8080.
> > I am having troubles defining the source port on the
> > handheld device.
> >
> > When the handheld establishes a session with the
> > mobilink service it will send data on 8080 (source =
> > random port, destination = 8080), but the mobilink
> > responds on the random port. Our firewall will not let
> > the random port through. Both source and destination
> > need to be on port 8080.
> > Where do you set this configuration?
> > Thank you.
>


Graham Hurst Posted on 2003-10-29 15:10:25.0Z
From: Graham Hurst <spam_guard_hurst@ianywhere.com>
Organization: iAnywhere Solutions
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.general
Subject: Re: Mobilink over HTTP ports
References: <3f9d3ef5.5114.846930886@sybase.com><3f9d43d6$1@forums-1-dub> <3f9ecded.6794.846930886@sybase.com>
In-Reply-To: <3f9ecded.6794.846930886@sybase.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: hurst-xp.sybase.com
X-Original-NNTP-Posting-Host: hurst-xp.sybase.com
Message-ID: <3f9fe671$1@forums-1-dub>
Date: 29 Oct 2003 08:10:25 -0700
X-Trace: forums-1-dub 1067443825 172.31.142.129 (29 Oct 2003 08:10:25 -0700)
X-Original-Trace: 29 Oct 2003 08:10:25 -0700, hurst-xp.sybase.com
Lines: 30
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:1949
Article PK: 4186

If you only specify a single client_port, the default is use a range of
101 ports. This is documented for client_port.

In general, you need to use a range for client ports. If you specify a
single port number, then your application will be able to maintain only
one connection at a time. In fact, even after closing the one
connection, there is a short timeout period during which no new
connection can be made using the specified port. Apparently your app
needs to have more than one outgoing port too, or it would not have used
8081.

For this reason, I can't imagine a useful firewall restricting outgoing
ports to a single value. Check with the firewall admin to see what the
allowed outgoing range is, or get one set up.

Having said that, I think you could restrict your app to use a single
outgoing port by using client_port=8080-8080, but then you will get an
error if that port isn't free (such as when your app used 8081).

Cheers,

Graham

tmalley wrote:
> Thank you, The client_port parameter worked, except for one
> thing. I used a sniffer on the network to capture the
> traffic, and both client and server are using 8080, but I am
> getting traffic on 8081 also on the Handheld device. Any
> idea why?