Python :: Get Client's Ip Address?
Jul 26, 2011Is there anyway to get the client's ip address when running PyAMF via the WSGI gateway interface (Apache)?
View 1 RepliesIs there anyway to get the client's ip address when running PyAMF via the WSGI gateway interface (Apache)?
View 1 RepliesI experience strange behavior of sockets in Python (3.2). Client connects to my application using Flash. Most of the time there is nothing unusual but sometimes python crashes in a way that should not have taken place - enter into infinite loops. Below I attach to the loop code and error message in the log. Python hang on bytesRecived = sock.recv(64) and receive b'' witch is visible in log.
code:
try:
buff = ''
[code].........
I want to get ip address of client (Browser) on which flash player is playing.
so how can i get ip address of client in as3, without any server side interaction ?
I want to get client IP and mac address,can as3 do it? Which class can I use?
View 2 RepliesI am using blazeDS remote object. I need to get a client ip address from clien request. Is it any way to get ip address and system information in blazeDS java.
View 1 RepliesI'm trying to find the IP address of a client when they make a particular LCDS service call. Understanding all the issues of getting a "real" IP address and privacy concerns and so on, it is possible to find the client's IP address?
View 3 RepliesI am using python and webapp framework in app engine for backend and flex 4 for front end.I would like to pass a string form backend to front end, so i write the following code in the main.py:
[Code]...
I have created a flex application in the Python Gae sdk and I got the error 2048, so I put a crossdomain.xml under the static folder.
The crossdomain.xml is following:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy> [code].....
However, I still got the error 2048. Therefore, I would like to know is anything I need to configure or miss in my case and how to fix the error.
Does Adobe Flash expose any Automation or hosting interfaces through COM or a DLL in %systemroot%system32? I'm working with Python and wxWidgets to host a flash application to monitor lunar phases.
View 1 Repliesi develop one project on python and upload on google app can i use swf file to import in python web application?
View 1 Repliesi am new on steaming & flash server; when we try to use RTMP over HTTP the outside client gets the internal IP address of the FMS server instead of the NAT one or public IP address, how can we solve this.
View 1 Repliesi need a simple python lib that check the uploaded files to my webserver are flash media (FLV), by reading the flv header (metadata) and not the mimetype extension.
View 1 RepliesIf swf file is embedded in html it is easy to call ActionScript methods via ExternalInterface using JavaScript. Now I want to use the swf file outside of a browser and still be able to access its methods, but now I want to use Python to call ActionScript. Is it possible? There is so little information about it in the Internet. Probably I can use AMF (pyAmf) for this, can I?
View 2 RepliesI'm trying to find out if there is a way I could embed a Python back-end into an AIR application? I'm looking to employ an approach similar to the one outlined here to implement the business logic for my application, but additionally, I would like to provide the user with a single binary which they can load. I don't want the user to have to fire up a seperate server process to make this work.
View 3 RepliesI have an xml snippet that contains an object hierarchy:
doc = """
<RootObj val1="ValueOne" stat1="Stat1" stat2="Stat2">
<internalarray type="array">
<InternalObject val1="12" val2="12" />
<InternalObject val1="13" val2="13" />
[Code]...
how to get your logo to appear next to the address of your web site when your website address is typed in,
for example if you look at the website address at the top of the screen you see (logo) [URL]
how can I find on fms server that client disconnected if if client disconnected due to power cut off. I client manually close the application then onDisconnect on server is called but if due to power cut off it does not called.
View 1 RepliesCan we perform client to client file transfer, client to server can be done by FileReference. but how do we do client to client transfer, for example if a user wants to send file to another user to whom he is chatting online.
View 3 RepliesHow do I check if email address is a legitimate email address? Is there any possibility in that?
View 7 RepliesI am trying to build a client-to-client streaming program - client 1 has a webcam and client 2 will connect to client 1 and be able to view the webcam. Is this possible using 2 swf clients? Can someone point me in the right direction as to what commands would be used to connect the two clients. I have tried: binary sockets Connect() where each clients points to the other and they both time-out NetConnection to try to point each client to one another to establish a connection, but no luck with that either; this seems more oriented towards streaming content to a flash media server rather than to another flash client.
View 1 RepliesWe're writing a flash application that can download a MP3 file, convert it to a Sound object, get the raw data and make some processing (like adding sounds, change octaves). After the processing, we want to send the data back to the server in chunks, so the server will be able to glue the data together and recover the new generated file. The problem is: if we send to the server "wav" pieces of sound, we are able to glue them together without any problem in the generated file. However, if we convert each wav piece to a mp3 file (so we can send a smaller file to the server) and join the mp3 files at the server, the result is a sound with some problems at the merge point.
This is how we load the mp3 file from the server:
sourceSnd.load(new URLRequest("sample url to mp3"));
sourceSnd.addEventListener(Event.COMPLETE, carregou);
This is how we convert each piece of mp3 to bytearray and wav:
[Code]....
in a local as3 application i need to capture a video at 25 frames per second and send the bytearray to a local python script.when i try to encode the bytearray to png inside as3 it is much to slow.so i decided to just write the raw bytearray i got from :[code]this is pretty performant and does not drop frames so far.however, i need to convert these raw bytes to png on the python side.
View 1 RepliesIs there a way to imprt a python program into flash, so that you would get what you would see in python, but in .swf file (I'd like to make a text-only game for Kongregate)
View 1 RepliesIs there any such effort been made?
Some more info:
it's client application (gui intensive)
By porting I was thinking of cross-compiling.
i have this function in a view that shows the xml in the browser, but what i want is to save the xml content in a file, to use in a Flash gallery.
def build_xml_menu(request):
rubros = Rubro.objects.all()
familias = Familia.objects.all()
[Code].....
I have a swf file (a flash game). I want to run some script to open it in full-screen mode. I'm not attached to any browser, but I do run Linux, so a bash, or generic answer is what I'm looking for. I'm also open to building a lite browser application if need-be.
View 2 RepliesHow can I send a .png file using python cgi to a flex application?
View 1 RepliesI am trying to create an automated program in Python that deals with Flash. Right now I am using Python Mechanize, which is great for filling forms, but when it comes to flash I don't know what to do. Does anyone know how I can interact with flash forms (set and get variables, click buttons, etc.) via Python mechanize or some other python library?
View 1 RepliesI am calling Python script from flex using HTTP service. How can I send back some values from python to flex app?
View 3 RepliesI'm trying to generate an embeded flash widget on a page with Python using a dynamic parameter. Here's the code I currently have.[code]...
The {{query}} parameter is passed through as a URL parameter. I'm not very technical, but I think the query value needs to be encoded for the flash to work. How do I encode the flash parameter?