Solved

ActionScript socket port

Posted on 2009-07-01
7
1,130 Views
Last Modified: 2013-11-11
Hi,
I use ActionScript code to communicate with TCP server (that I wrote in .Net)
_global.socket = new XMLSocket();
_global.socket.connect(IP, port);
I use port = 13000.
Everything works fine.
But in some other computers, I cannot achieve connection.
I suppose it is because of firewalls.. that "block" this port. Right?
Can you suggest me other port number to use such that I will not have this problem?
Notice that I already use at the server (listening) side the ports 80 and 443.
Thanks, Aryeh.
0
Comment
Question by:tuchfeld
  • 5
  • 2
7 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 24783772
Hi, unfortunately what port is available will always depend on the network of the client.
I don't think it's possible to say port xyz will definately be made available.

i think you might be able to do something with C# where you can check if a port is available if not go find another one.
but i'm not sure, you'll need to ask the C# guys.
0
 

Author Comment

by:tuchfeld
ID: 24788088
I'm trying now port number 563 (NNTP over SSL).
maybe this port is not be blocked by common firewalls...
0
 

Author Comment

by:tuchfeld
ID: 24788143
Hi blue-genie. after all maybe your idea is good.
I should go to the "problematic client" and search for a port number that works for me.
unfortunately, there are technical and anministrative difficultied to test it.
I hoped that there is some "table" of ports un-blocked by common firewalls,
and someone that can advice which to use.
Thanks, Aryeh.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 39

Accepted Solution

by:
blue-genie earned 250 total points
ID: 24793664
sorry can't help you with that.
on our networks and my clients, generally all ports are closed except 80 and 8080 unless explicity open.
0
 

Author Comment

by:tuchfeld
ID: 24996038
thx blue-genie (sorry for the delay I was expecting other solution)
so in that case I'll try 8080...
I'll let you know if it works.
0
 

Author Comment

by:tuchfeld
ID: 24996986
actualy you gave the solution! Thanks blue-genie.
http://www.grc.com/port_8080.htm
says:
port 8080 is a popular alternative to port 80 for offering web services. "8080" was chosen since it is "two 80's", and also because it is above the restricted well known service port range (ports 1-1023).

Its use in a URL requires an explicit "default port override" to request a web browser to connect to port 8080 rather than the http default of port 80.
0
 

Author Closing Comment

by:tuchfeld
ID: 31598840
she thought she didn't hep but eventually she did.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now