Flex :: Completing A Socket Connection Across An Intranet Or Internet

Feb 12, 2010

I am writing a peer-to-peer binary socket program. There are only two endpoints. One socket is listening on my laptop system. The other socket is broadcasting from my desktop system. I have a third program running on a hosted server, that is available to broker the connection between the two. My problem is that when the laptop and desktop are on the same network, they both have the same internet IP address but different intranet IPs, but when the laptop is on the road, then the IP addresses are different. In order to be truly peer-to-peer, I have to write it so that after the connection is established, that the two computers communicate directly between one another. How is this generally accomplished, when the two computers could potentially share the same IP address, if they are running on the same network?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Detecting Internet Connection - Check If A User Is Connected To The Internet

Mar 6, 2006

At the end of the movie I would like to check if the user is still connected to the Internet (they maybe on an unstable dial-up connection and lost connection). Is there anyway to do that? I mean, is there a way to check if a user is connected to the Internet using ActionScript?

View 4 Replies

Flash :: Flex - AIR HTTPService - No Internet Connection

Jun 8, 2011

I am creating an air app that uses HTTPService to connect to a .net api and get a user for example. It works great when I publish the move for "Flash Player 10" as a .swf, however, when I publish it as .air it seems like there is no internet connection at all. I am assuming it's internet securities (maybe firewall). I turned off my firewall and everything that might be blocking the internet access, but nothing seems to work.

View 1 Replies

C# :: Security Sandbox Violation For Socket Connection Using Flex

Sep 29, 2009

import flash.events.*;
import flash.net.XMLSocket;
import flash.system.Security;

[Code]....

I want to implement flex web application using Socket connection. But I am getting sand box violation error for remote sites in sample application . It is working fine in local.

Error:

Security Sandbox Violation
Error: Request for resource at xmlsocket://170.21.8.0:4000 by requestor from http://localhost/Sample/DotNetSocketConnect.swf is denied due to lack of policy file permissions.

View 1 Replies

Iphone :: Flex - RIA Flash Apps On The IPhone Store Persist Data Until An Internet Connection Is Available?

Oct 8, 2009

I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development.

However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these apps can persist any data. Data entered by the user should eventually be transmitted to the web service, but until then I want it to persist even if the Iphone should run out of power.

Is this possible? Or does the Iphone flash wrapper make it impossible to access the hard disk?

View 2 Replies

ActionScript 3.0 :: Debugging Socket Connection?

Nov 12, 2008

I have a project where I communicate net.socket class.Everything works fine but when I try to start the debugger I only get someerror message:

Versuch, zu starten und Verbindung zu Player mit URL
c:flash_testSocket.swf herzustellen
[SWF] c:flash_testSocket.swf - 6006 Byte nach

[code].....

View 1 Replies

ActionScript 3.0 :: Use The Debugger With A Socket Connection?

Aug 18, 2009

is there a way to use the debugger with a socket connection? When running debugger I can't get a connetion to my serveer.

View 3 Replies

Flash :: Establish An SSL Connection From A Socket In It?

Sep 26, 2010

Is it possible to establish an SSL connection from a Socket in Flash?

View 1 Replies

ActionScript 3.0 :: Socket Connection To Port 443?

Jul 16, 2009

I am able to establish socket connection to a remote machine by first loadind the policy file. But the same thing is not working if i am trying to connect to the same remote machine & 443 as port No. In policy file the connection is allowed to all ports.

Is there any thing else to be done. I am geting sandbox violation error.

View 1 Replies

Actionscript 3.0 :: Socket Connection In Browser?

Aug 9, 2011

I am using flash socket to connect to ftp and upload files. Its working fine in flash IDE but it give security error in browser. I have loaded policy file by ecurity.loadpolicyFile() also i have specified Security.allowDomain("*") but still it doesnt work. I have placed my crossdomain.xml at root level on ftp.My crossdomain.xml looks like this..

<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>

[code].....

View 9 Replies

ActionScript 2.0 :: Checking Xml Socket Connection?

Jan 12, 2007

how to check if an xml socket connection was made? i mean the code for it.

View 5 Replies

ActionScript 3.0 :: Socket Connection Testing Outside Of CS3?

Feb 17, 2009

I'm writing a online application in flash and I'm trying to test the socket connection over a java server running on localhost. It works fine running in the CS3 environment using ctrl+enter and it's communicating with the server and sending information back and forth. But I can only test one client at a time like this. When I try to run the swf straight it isn't connecting. how to set up the permissions correctly so I can test locally?

View 1 Replies

ActionScript 3.0 :: Policy File With Socket Connection?

Jan 6, 2011

I have 2 applications which I wrote in ActionScript 3.0 as client and C#.net as server. These are basic chat applications. Also I have a test website which is running under the same machine with chat server application.
 
Server application is listening 289 port, flash application connecting to server with domain and 289 port, it can talk with server during working on Flash. But when I put the flash in a html page, the socket connection is breaking after a while because of security reasons.
 
I know that is necessary to put a crossdomain.xml file on target website's root folder. The problem is here: Yes, there is a crossdomain.xml file like this:[URL]...

View 2 Replies

Detect That TCP Connection Has Been Refused Using Flash.net.Socket?

Aug 3, 2010

There is a flash movie which is using flash.net.Socket to connect to a server. But there could be a situation when the server is not running, hence nothing is listening on the port socket is connecting to.

When I do "telnet hostname port" I get a fast connection refused error. But flash.net.Socket does not invoke any event (see below), but silently waits for socket timeout. For me it is important to reduce time needed to detect non-existing server as much as possible to be able to reconnect to another server in the cluster.

I've tried the following events, but to no avail:

close
connect
ioError
securityError
socketData

None of these is invoked in such situation.

Is there a way to detect that TCP connection has been refused using flash.net.Socket?

View 3 Replies

ActionScript 3.0 :: Reconnect To Socket After Connection Drops?

Dec 22, 2011

I would like Flash to reconnect to a socket if its connection is dropped. I am using the Socket class to establish a connection and then adding an Event.CLOSE listener to the socket. What is a good strategy to reconnect back to the socket if the connection has suddenly closed? Here is a the method I am calling inside the close handler. The connect() method establishes a new socket connection

HTML Code:
private function handleOutage():void
{
// if socket is not connected

[code]...

However, I keep getting the following error:

HTML Code: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation

View 1 Replies

IDE :: Flash Connection To PHP Socket Fails When Online?

Sep 12, 2009

.to the letter after installing Apache and PHP on my pc. And i am geting really fraustrated because i cannot get the flash objects to connect to the PHP socket when they have been uploaded to the localhost server or any other online server. However it works no problem when i run the flash object straight from my HD. The socket is definately open because telnet connects to it fine.

My pc ip is 192.168.1.7. And when I transfer the flash object to any other pc on my lan, if it is on the hd, it connects to my pc no problem. However, if i were to type in http:[url]... it DOESN'T WORK.

View 14 Replies

ActionScript 3.0 :: Flash Socket Connection In Browser?

Aug 9, 2011

I am using flash socket to connect to ftp and upload files. Its working fine in flash IDE but it give security error in browser. I have loaded policy file by Security.loadpolicyFile() also i have specified Security.allowDomain("*") but still it doesnt work. I have placed my crossdomain.xml at root level on ftp.

My crossdomain.xml looks like this..

<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>

[code]...

Yet there is security error...

View 2 Replies

ActionScript 3.0 :: Verify Internet Connection On PC?

Mar 10, 2010

Is there a class in AS3 that will allow you to check if the pc on which the player resides has a current internet connection?

View 1 Replies

Flash 9 :: Checking The Internet Connection

Oct 21, 2008

Is there a way to continually check the user's internet connection from within Flash?

The one way I've seen is to load a small file using loadVars, and if that file loads successfully, then the connection is good.

But is there something in System.capabilities or System.security that might be a better option?

View 1 Replies

ActionScript 3.0 :: AIR HTTPService Internet Connection?

Jun 8, 2011

This might seem like a simple question, but I searched the internet to no avail.I am creating an air app that uses HTTPService to connect to a .net api and get a user for example. It works great when I publish the move for "Flash Player 10" as a .swf, however, when I publish it as .air it seems like there is no internet connection at all. I am assuming it's internet securities (maybe firewall). I turned off my firewall and everything that might be blocking the internet access, but nothing seems to work.

View 1 Replies

ActionScript 2.0 :: Test For Internet Connection?

Aug 23, 2006

I'm creating a stand-alone player based Flash app. Some of the required elements within it are links to areas in a site online. I need to test before hand if the user has a connection. I'm stumped on this one. I'm not worried about NetConnection etc. I'm simply trying to test if the user has an internet connection or not. Would anybody happen to know if there is a function or some combination of methods that is not browser-based that can test for an internet connection?

View 2 Replies

ActionScript 3.0 :: Detect An Internet Connection?

Jul 10, 2008

is it possable for as3 to detect an internet connection?

View 14 Replies

ActionScript 3.0 :: Internet Connection Monitor?

Sep 13, 2011

My connection at work seems to be a bit rocky. I'd like to make a simple graph using the awesome power of ActionScript to demonstrate the rockiness of work compared to the smoothness at home to my IT guys.Websites like speedtest.net won't cut it as sometimes my connection is great, with sudden cutoffs randomly. Other apps won't work as I can't install software at work.

Any thoughts on how to get started? I'm guessing I download some audio or something at regular intervals or something to test/graph (I can handle the graph part)? I don't need specifics, although I'd be delighted to see examples if any. I really just need some general guidance on where to get started.

View 2 Replies

ActionScript 3.0 :: Socket Connection - Sending Data Without Any Errors?

Mar 18, 2009

I use a socket connection to share data between flash and VB. I check the connection in VB and send a message when my flash is connected. My VB tool then sends the data continuesly (about every 40 milliseconds or slower) to flash. Works fine. Now I have to send some data back from flash to VB. I can send the data without any errors in Flash but it never arrives in VB.

View 3 Replies

Actionscript 3 :: Pass Object To The Server Through Socket Connection?

Jan 30, 2010

I am trying to pass object to the server through socket connection in actionscript 3. What is the best way to do that?

is serialization better? or should I encode it first and then sent it as string?

View 1 Replies

ActionScript 3.0 :: Socket Connection Close Event Not Dispatched

Jul 18, 2011

Why the Close Event is not dispatched after I disconnect my wifi connection? Or any way to determine if the connection is active.

View 2 Replies

Actionscript 3 :: Security Error 2048 On Socket Connection

Feb 11, 2012

I have a simple IRC socket that is used to communicate with servers for a web-based IRC client. Unfortunately, attempting to connect to a network results in a security error. I read up on sandboxes and their appropriate permissions, and then used Security.sandboxType to get the sandbox of my socket, which came up as remote. After reviewing the documentation, I still don't fully understand how I can enable my socket to connect to a remote IRC server. I tried Security.allowDomain,

View 1 Replies

Actionscript 3 :: Check For Internet Connection In Flash?

Nov 24, 2010

How do I check for an active internet connection in Flash using Actionscript 3?

View 2 Replies

Flash :: Flowplayer Requires An Internet Connection?

Mar 10, 2011

I've noticed in testing a problem whereby Flowplayer will not play any content without a internet connection. All the files which make up my project are stored locally, and I've gone through and checked all the paths to make sure nothing points outwards towards the internet.

Curiously if I pull the internet connection out before the web page loads, the video file fails to load, however installing a loopback adapter gets around this. How can I alleviate this problem?

For proofs sake I've loaded the page in chrome looked at the network activity;

View 1 Replies

Actionscript 3 :: Adobe Air - Check For Internet Connection?

Mar 12, 2012

I'm building an Air app with Adobe Flash CS 5. I need to check if an internet connection is available.

I'm running into this errors:

1172: Definition air.net could not be found.
: Type was not found or was not a compile-time constant: URLMonitor.

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved