all groups > flash data integration > february 2005 >
You're in the

flash data integration

group:

Socket specifics?



Socket specifics? VegasChandler
2/17/2005 12:45:42 AM
flash data integration: I have a flash applet which is attempting to access a MSSQL db. The client it
runs on has port 80 blocked. When I use the XML class to attempt to connect
using a URL with a specific port (eg. http://www.test.com:8091), it doesn't
seem to grab the data. Can somebody explain to me the exact socket specifics
on this? Does the request attempt to leave the client on port 80 and hit the
server on port 8091, or does the request leave the client on the same port as
the server 8091?

As an alternative I'm considering using the XMLSocket class, where you can
specify a socket to communicate across. My question here would be the same as
above though. Does the request leave on port 80 from the client? I really
can't find any explanation on this at all.

Thanks.
Re: Socket specifics? perry
2/17/2005 12:36:05 PM
i´ve often connected to a tomcat server on port 8080, never had a problem,
should work perfectly.
in your example, the server will deliver on port 8091, you never know the
port a browser or flash player uses to send the request.

perry
"VegasChandler" <webforumsuser@macromedia.com> schrieb im Newsbeitrag
news:cv0pfm$qhp$1@forums.macromedia.com...
[quoted text, click to view]

Re: Socket specifics? James Fee
2/17/2005 1:36:03 PM
The way that sockets work, the client doesn't make a request from a specific
port, it is assigned by the OS. It does make a request to a specific port
(in your case 8091). The browser works the same way, if you try to navigate
to a web page, you are not leaving your machine on port 80, you are making a
request to port 80 on the machine you are requesting information from. The
OS has a pool of ports that it will assign to your end point when you
attempt the request. You are most likely going out on a port above 2500,
but it is really hard to say what it will be. And for the most point which
port you exit your machine is irrelevant, it is the port you are attempting
to connect to that is important (in most cases).

--
Jim Fee
Viking Electronic Services
jfee (at) vikinges (dot) com


[quoted text, click to view]

Re: Socket specifics? VegasChandler
2/17/2005 4:16:24 PM
What exactly do you mean by that last sentence that one never knows the port
the request is made on. Not to act the annoying media agent, but you really
didn't answer my question at all with your response. I know what port the
server will be trying to return, I need to know the port the request leaves
from. If the request still attempts to always leave from port 80 then that
request will always be blocked because the port is closed. Perhaps I just
don't know enough about socket communication, but I'm willing to learn all this.

Originally posted by: Newsgroup User
i?ve often connected to a tomcat server on port 8080, never had a problem,
should work perfectly.
in your example, the server will deliver on port 8091, you never know the
port a browser or flash player uses to send the request.



Re: Socket specifics? VegasChandler
2/18/2005 4:34:28 PM
AddThis Social Bookmark Button