Retrieving the remote IP when using Flex Remoting over RTMP
Hello,
I am trying to retrieve the IP address of a user making a Java call to my service defined in remoting-config.xml
If i setup an AMF channel I can use the folllowing to retrieve the remote IP address:
String ip = FlexContext.getHttpRequest().getRemoteAddr();
But when i try to do the same over a RTMP channel I get a Java exception because the object that RTMP uses to fake a httprequest doesn't implement that function.
How do i retrieve the IP of the user making the call in this case? It has to be somewhere or the server wouldn't be able to send a reply to the client, but i haven't been able to find it.
Constantijn Visinescu
I tried all of your ideas and still no luck (see below). One thing I forgot to mention was that when using Internet Exploier to view the web page on another computer I can see the document title (AKA- VI name) and the header I typed in. But where the vi should be I have the missing picture Icon (the one you see when a web page has a bad link to an image). Image will show up on sever computer when I click preview web page. Is there anything that the receiving computer needs to have other than the run time code?
TST – I have found that the start web sever button will gray out if you goto tools options web server configuration then manual check the enable web server check box. So that wasn’t it.
Soroush- I set up computer to be a server using control panel (I didn’t know you could do that) thank for the ini file I will update mine
Thoskins- I change port number and the still didn’t work
HTML code created using Labview web publishing code (everything looked go to me???)
var obj = '<OBJECT ID="LabVIEWControl" CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AC" WIDTH=1019 HEIGHT=716 CODEBASE="ftp://ftp.ni.com/support/labview/runtime/windows/7.1';
if (lng.indexOf("fr") != -1) { obj = obj + '/French'; }
else if (lng.indexOf("de") != -1) { obj = obj + '/German'; }
else if (lng.indexOf("ja") != -1) { obj = obj + '/Japanese'; }
obj = obj + '/LVRunTimeEng.exe">';
document.write(obj);
// --></SCRIPT>
<PARAM name="LVFPPVINAME" value="390Troubleshoot.vi">
<PARAM name="REQCTRL" value=false>
<EMBED SRC=".LV_FrontPanelProtocol.rpvi71" LVFPPVINAME="390Troubleshoot.vi" REQCTRL=false TYPE="application/x-labviewrpvi71" WIDTH=1019 HEIGHT=716 PLUGINSPAGE="http://digital.ni.com/express.nsf/express?openagent&code=ex3e33&"></EMBED>
</OBJECT>
</TD></TR></TABLE>
</HTML>
Similar Messages
-
How do I remove an old username from the app store when using the update function
How do I remove an old username from the app store when using the update function.
I purchased my Mac used. The former owners username prepopulates when I try to perform the updated function on the app store. It does not allow me to use a different user name. I have created my own username and password. I have even been able to purchase items from the app store, it's just when I use the update function it does populate with my username. Any help is appreciated.The first thing to do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. You — not the previous owner — must do that. How you do it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
1. You don't own another Mac.
If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. For early MBA models, you may need a USB optical drive or Remote Disc. You should have received the media from the previous owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
2. You do own another Mac.
If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to create a bootable USB device and boot the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can boot from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
Once booted in Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
After partitioning, quit Disk Utility and run the OS X Installer. You will need the Apple ID and password that you used to upgrade. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
Then run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Apple customer service has sometimes issued redemption codes for these apps to second owners who asked.
If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support. -
How to add interface to customlize MXML Component when use Flex Builder 3?
How to add interface to customlize MXML Component when use
Flex Builder 3?David,
I don't believe you can add the interface via the creation
dialog in FlexBuilder 3. You can always manually add the
"implements" property to your MXML Component root tag. Something
like this: <mx:VBox implements="com.mycorp.IMyInterface">
If you want autogeneration of the interface, then create an
ActionScript class with that interface and then copy the generated
functions and setter/getters into the script block of your MXML
component. -
Using just the TV screen when using HDMI port?
Hi,
I have the Macbook Pro with retina display and I was wondering how I could use just the TV screen when using HDMI port. I don't want mirroring displays, just one on the TV.With the TV connected and the MBP plugged into the mains (i.e. not running on battery power) close the lid. The MBP will go to sleep, wake it up with an external keyboard or mouse - which must be connected in advance, or paired in advance if a bluetooth keyboard/mouse.
-
Several of us have a iPhone 6plus and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?
Not having the problem, don't personally know anyone who is.
-
Get rid of the initial asterisk when using PasswordField masking in console
Hi!
How can I get rid of the initial astrerisk when using the PasswordField script from Sun?
I've tried to check whether the BufferedReader is empty or not, but with no succes.
Here comes the code:
PasswordField.java
import java.io.*;
public class PasswordField {
*@param prompt The prompt to display to the user
*@return The password as entered by the user
public static String readPassword (String prompt) {
EraserThread et = new EraserThread(prompt);
Thread mask = new Thread(et);
mask.start();
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String password = "";
try {
password = in.readLine();
} catch (IOException ioe) {
ioe.printStackTrace();
// stop masking
et.stopMasking();
// return the password entered by the user
return password;
}EraserThread
import java.io.*;
class EraserThread implements Runnable {
private boolean stop;
*@param The prompt displayed to the user
public EraserThread(String prompt) {
System.out.print(prompt);
* Begin masking...display asterisks (*)
public void run () {
stop = true;
while (stop) {
System.out.print("\010*");
try {
Thread.currentThread().sleep(1);
} catch(InterruptedException ie) {
ie.printStackTrace();
* Instruct the thread to stop masking
public void stopMasking() {
this.stop = false;
}Hello Yajai,
The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.
I hope this help. Let me know if you have any further questions.
Regards,
Sean C.
Attachments:
SetTimeout.bmp 2305 KB -
Need help to retrieve the message from MQ using get operation
Hi
Used MQ adapter to Post a message to queue.
And used Received activity in bpel to retrieve the message using MQ adapter from same queue(used get operation) , got an error message as timed
out exception.
Could some one assist in retrieving the message from MQ using get operation.
Regards
RajaHi Raja,
Is the process a empty bpel process which is used to get the message from the MQ?
Regards
Surya -
i tried everything in this article, but still have the same problem when using Rapidweaver software. NOT with other software. I am converting my iWeb site to Rapidweaver, whenever there is a calmer period in my office. I have 16 Gb RAM on my NEW iMac and have Parallels desktop, mail, safari, iWeb and Rapidweaver running simultanious.
I never have the problem if i don't use Rapidweaver, but after i have added several pages to Rapidweaver, the problem begins. my iMac won't start up. the only thing that works is re-installing Macos OS X 10.8. i tried even whiping the completeharddrive, and reinstalling with a complete new user, the same problem.
I had it on my previous iMac also, and bought a new one because i thought the problem was in the iMac first. i hadn't noticed it only happens with using rapidweaver.
i sent my complete rapidweaver project to the programmers from rapidweaver at Realmacsoftware, but they couldnt reproduce my problem, there macs started up without any problem.
i deleted all the rapidweaver addons and extra stacks, and started a complete new project.
saterday i had the problem again, after adding about 5 new pages to my rapidweaver site.
i think i have reinstalled Macos OS X 10.8.2 20 or 30 times by now
does anyone have a sollution?Type '''about:support''' in the URL bar and hit Enter.
Scroll down almost to the bottom of that listing and see if you have '''user.js Preferences''' just above the '''''Graphics''''' category.
If you do have that, click on '''user.js file''' in this sentence. <br />
''Your profile folder contains a user.js file, which includes preferences that were not created by Firefox.''
Does that "different homepage" appear in that user.js file? -
i use a 27inch lcd screen. what do i have to do to close the mac book when using the big screen????
Here is Apple's instructions:
http://support.apple.com/kb/ht3131
Regards,
Captfred -
Is there a way to adjust the frame length when using a FFT
Is there a way to adjust the frame length when using a FFT?
Thanks,
DavidI thought that to have a longer frame rate you just need to have a longer sample set.
-
Adding a Button in the Application toolbar when using LDB for HR programs
Hi Experts,
I have a requirement to add a new button after execute button in the Application tool bar for the HR programs when using LDB PNP.
Normally when we are using LDB in our program we will get a extra button provided by SAP after the execyte button. When we are creating a new button for this by using the table fields sscrfields with the function key as 2 we are not able to see the new button.
can any one help me in this issue.please post your relevant coding with respect to the button
A. -
Why is the response time when using clickwheel...
I've bought a new 60gb video and, in comparison to my 20gb 3rd generation, the response time when using the clickwheel (next track/pause/play/bak track) is annoyingly long on start-up. And the display takes seconds to catch up with what's playing sometimes freezing with half of the one 'page' showing and half of another. Should I expect this because of the larger capacity/more complex iPod?
Also, in an earlier post I noted that when the iPod first fires up, tracks seem to stop and start - just for a second or so, 3 or 4 times within the first 15 seconds. It's not the track on iTunes as it never happens on my 3g.
Dell Windows XPDefinately sounds like a faulty harddrive.
You could always try restoring it with the most recent updater, and reloading everything - kind of like a fragmented harddrive, I am noticing better performance since I last wiped it clean and relaoded it (due to another error - actually).... -
Is there a way to retrieve the last coordinates when an ITouch was on? Does Last Alert app work?
Not with the Apple FindMyiPod feature. The Last Alert app you mentioned will give you the location with low battery (20%, 10% and 5% or so).
There may be other apps that will do it periododically without having to have a low battery.
This app will send its location every hour.
https://itunes.apple.com/us/app/id302902374?mt=8
Note, the iPod has to be connected to the internet. -
Question about the CSS behavior when using layer 3 sticky and sticky table
Hi everyone,
I have a question about the CSS behavior when using layer 3 sticky and sticky table is full.
If I configure layer 3 sticky and specify the inactivity timeout as below, how does the CSS
handle subsequent needed sticky requests ?
advanced-balance sticky-srcip
sticky-inact-timeout 30
CSS document says that
Note:
If you use the sticky-inact-timeout command to specify the inactivity timeout
period on a sticky connection, when the sticky table becomes full and none of
the entries have expired from the sticky table, the CSS rejects subsequent
needed sticky requests.
My question is what is the next reaction by doing the CSS if the CSS is in the
following condition:
when the sticky table becomes full and none of the entries have expired from
the sticky table, the CSS rejects subsequent needed sticky requests
Does CSS just rejects/drops subsequent needed sticky requests ?
or
Does CSS does not stick subsequence requests to particular service but CSS forward
subsequence requests with round-robin basis ? which means if the sticky table is full,
the CSS just works round-robin load balancing fashion for subsequence requests ?
Your information would be appreciated.
Best regards,Hello,
There is a good document explaining this on Cisco web site
http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a0080094b4b.shtml
It depends if the sticky-inact-timeout is used or not. If not, it's FIFO (the oldest entry in the sticky table is removed). If yes, the CSS will reject the next sticky request.
Rgds,
Gaetan
Rgds
Gaetan -
Omit the XML declaration when using the PHP MM_XSLTransform class
Hi
Is there any way to omit the XML declaration when using the
PHP MM_XSLTransform class?
When using the PHP MM_XSLTransform to transform some XML into
HTML, the XML declaration is faithfully delivered, which is
expected. In my case though this ends up in the body of the
document and is not desired. I wish to choose that the XML
declaration is not shown.
I have tried to use the <xsl:output method="xml"
encoding="utf-8" omit-xml-declaration="yes"/> in the XSL
stylesheet but the declaration still appears.
Any help?
all the best
DaveJim20005 wrote:
> I'm using XLS transfomation in DW for reading XML files.
Now (I'm just back
> form holiday), my webspace provider has updated to php
5.1.5. I'm getting this
> error:
Comment out line 301 and add two new lines immediately after
it like this:
// $xml = DOMDocument::loadXML($content);
$doc = new DOMDocument();
$err = $doc->loadXML($content);
This is part of a PHP 8.0.2 hotfix that can be obtained
directly from
Adobe support.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Maybe you are looking for
-
Creation of support message in SolMan without having user id in SolMan
Hi Everyone, Need your help in this issue. I have solution manager configured to create a service desk message from satellite system. We dont want everyone (Users from satellite system) to have an SOLMAN user id to create a service desk message. We w
-
No option to save files, content/file type missing from Applications list
I want to be able to click a link to a file and have the option to Open the file with a specified application. When clicking on the file I want to Open with a specified application, I only get a Save or Cancel option. When I look in Preferences > App
-
I have added a new field in IT0006 ,Now when try to create a new record for
Hi Experts, I have added a new field in IT0006 ,Now when try to create a new record for a employee. 1,If I give the SUBTY in the PA30 screen getting an error "Don't Specify a subty error" if and remove the subty and press CREATE button popup's comes
-
Guys, what does it mean when someone says that they worked with document level data? Thanks, RG
-
How can I store Templates that will show on New/Template
I downloaded a couple of templates -- one of them in zip format. I expanded them and placed them in /templates in a folder of their own. Prior to that, the Templates folder had three folders: images, video_controls and video player. Where does Dreamw