Chat App: how to store the user IP in database when they login.

hello,
i am working on chat application. first i made a login GUI form. after login when we run the Chat program, it ask the ip address of the server to whom it want to connect. and if u enter the ip address, it will connect to the server and chat will begin, thats working perfect.
but i want to show the list of users who r logged on and when i simply click on the user name, chat should begin.
i have the logic that when any user log in, then its IP address will be stored in the database. this ip address will shown to the online users.
but i dont know how to store the user information in database when they log in. can any body suggest me wht lines of code i should use.
thanks.

palakk wrote:
i have the logic that when any user log in, then its IP address will be stored in the database. Bad approach. That will only work if this chat is only intended for use on a LAN. If it's used on the internet, then your users' IP addresses will almost always be either a) those of their routers, or b) private IP addresses, and in both cases, multiple users can have the same IP address.
this ip address will shown to the online users. Why would you want to do that? I want to chat with "Bill", not with "1.2.3.4".
but i dont know how to store the user information in database when they log in.Do the same thing that you're currently doing to store the IP address, but with the other information you want to store.
can any body suggest me wht lines of code i should use. This is not a code writing service.

Similar Messages

  • How to configur the user to get notified when IDOC goes in to error?

    Hello Experts,
    Please tell me how to notify the users when IDOC goes in to error...
    please tell me where we can configure this thing,,
    Thanks
    Venkatesh

    Venkatesh,
    The best technique for this would be configuring Workflow. Whenever an Idoc goes into an error it will go to the specified user. You have to set it up and can have more than 1 user and also depending on what Idoc failed you can have different users.
    Example ORDERS05 failed, let it go to the inbox of the Order team , SHPORD failed , put it in the mailbox of the WM team lead etc.
    Read up the workflow documentation of SAP which is really good.
    You can do other things, like have a simple email etc. but all will need program changes.
    Usually I have seen some teams have the most simple mechanism.
    Have a peron check the Idoc that failed and then notify the teams.
    Of course 1 person can be only responsible for lets say a few Idoc types.
    I have worked in such a environment where I used to look at the Order to cash Idocs ( Orders/Invoices/bank payments etc.)
    Also you train the users to look at Idocs and recognise and fix errors, so they are not totally dependent on you.
    But Workflow is the best solution according to me.
    Regards

  • How to store the image in CRM database

    Hi,
    We have requirement for storing the image in the database. User can brwse for image and store it to the database and shoud retrive it for display.
    Please need help , how to do this.
    Thanks,
    Sushant

    Hi
    I hope these links will help:
    http://help.sap.com/saphelp_crm60/helpdata/de/43/a996152ce41bbde10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_crm60/helpdata/de/36/844c5cb496dc428344d3ea4c46d3b0/frameset.htm
    RP

  • How can I allow users to upload files when they submit a contact form?

    I need my users to be able to send me pdf, ai, psd, and jpeg images for a custom tshirt website I'm building Thanks for any suggestions-- Lory

    Hello,
    Please check the similar forum thread below.
    https://forums.adobe.com/thread/1213492
    Regards
    Vivek

  • BB Curve 8310 - Message -"Unable to look up the user info in database"

    Have contacts with email address uploaded from older model. Receive emails ok...have also set up two addresses for myself, however when trying to either manually place the email address or select one from my contacts, I get the response
    "Unable to look up the user info in database" when trying to send email
    I have created a CSV file for my contacts to transfer to the Curve however I don't know where to go from there. 

    Unable to look up the user info in database - KB03414
    SOLUTION HERE.
    If your issue is resolved, put a checkmark in the green box that contains the resolution.
    OR
    If it was just/or also really helpful - Give it a Kudos.. Go on Mate.. Help the rest of the clueless blackberry user world find their answer too..
    ~Gday from Down Under~

  • HT1933 I downloaded WE CHAT app. which i store shows free. But still th. Can anybody tell me how to report this?ey charged 1 $ from my account

    I downloaded WE CHAT app. which i store shows free. But still they charged 1 $. Can anybody tell me how to report this?

    iTunes Store & Mac App Store: About payment card authorization ...

  • How to capture the user name who is running concurrent program

    Hi Everyone
    In oracle apps when i want to store the user name who is running a concurrent program in specific responsibility.
    For that I created a table as USER_INFO which has a column called USERNAME.
    T o capture the user name i created a before report trigger and wrote the following code which will store the username into USER_INFO
    function insert_trg return boolean is
    begin
      insert into USER_INFO(USERNAME) values
    (select fnd_profile.value('USERNAME') from dual);
    COMMIT;
      return (TRUE);
    end;In the above code i used fnd_profile.value('USERNAME') to store the username but after running the concurrent program when i am query the table it returns no rows .
    It means the fnd_profile.value('USERNAME') is not storing the value.
    Please tell me what to do?
    Regards
    Sabyasachi

    In order to fetch any FND_PROFILE or FND_GLOBAL values you need to initialize apps
    fnd_global.apps_initialize(user, resp_id,resp_application_id)
    begin
    fnd_global.apps_initialize(0,20420,1);
    dbms_output.PUT_LINE (FND_PROFILE.VALUE('ORG_ID'));
    dbms_output.PUT_LINE (FND_PROFILE.VALUE('USER_ID'));
    dbms_output.PUT_LINE (FND_PROFILE.VALUE('USERNAME'));
    end; Check the following MOS note
    How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE) [ID 209185.1]
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • How can all the users in my computer (my kids) have access to all the photos I have in I Photo?

    How can all the users in my computer (my kids) have access to all the photos I have in I Photo? My photos only appear when I (the administrator) log into the computer. I want my kids to be able to access them also.

    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How to pass the USER variable to RPD in 11g?

    I am trying to figure out how to pass the USER variable to the RPD in 11g.
    In 10g, I had define an intializtion block to store the USER variable and pass it to a statement that has to be executed before the query is executed.
    We use the Oracle VPD technology that allows to restrict data access. This is the statement that has to be executed before a query can run.
    select vpd_adwh.setclnvpdcontext_fnc('VALUEOF(NQ_SESSION.cuser)', UPPER(:USER))) from dual
    That is the 10g version and it works fine.
    In 11g, I tried to use
    select vpd_adwh.setclnvpdcontext_fnc('VALUEOF(NQ_SESSION.cuser)', UPPER('VALUEOF(NQ_SESSION.USER)')) from dual
    but this is not working.
    Any help?

    any ideas?

  • DIAdem: How to store the input channel information from the Analysis modules

    Hi,
    I would like to know if there is a way to store the input channel name(s) when executing modules from the Analysis Panel. For example, when I run an FFT on a set of data: x-channel: "[1]/Time" y-channel: "[1]/Voltage" , I would like to be able to store this information as a custom channel property in the output file (ex. "[1]/AutoSpectrum").  
    The only place I've found that contains this "history" information is in the log section of the Analyze Panel. However, I have not been able to figure out how to access the information in the Analysis log programatically through VBS scripting.
    Thanks

    Hi Brad,
    So here's where I'm struggling. My tool is more a set of tools. I have created custom bars that launch the appropriate dialog box for each tool. Let me give you and example of the kind of work flow I that might be used:
    The user loads up a TDM file or imports data using a DataPlugin. Then, they launch my tool for going through each channel and adding custom properties (sensor type, sensor location, etc). Once all properties have been applied to the channels they close that tool. Now they fire up the Smoothing module in ANALYSIS and save the result as a new channel. Next, they launch my tool for computing the Shock Response for that event. When the user has the desired output, they run my plotting SUD. This is where they can select which report template to use and which channels to plot. The selected channel(s) used for plotting doesn't have all of the custom properties that we taged in the original data channels.
    As you can see, the process involves using some of my own custom SUDs where I can keep track of everything but also allows the user to use any of DIAdem's native functions. This is where I am struggling to be able to keep track of the channels used as input. I can "see" the info I need listed in the log section of the ANALYSIS Panel but can't pragmatically access it (the info in the main display window). It would be really handy if this info was automatically stored in the channel properties of each output channel.
    I guess my only option is to (in the plotting SUD) not only ask the user for the channels to plot, but also ask them to select the coresponding original channels that have the custom properties.
    James

  • How to store the 2d graphics with matrix?

    Hello everybody,
    I met a problem,and the question is "How to store the 2d graphics with matrix?".
    who can help me?
    Best wishes to all of you.
    James Wei.

    Hello,
    It is possible to store the time in user variables. How to export those variables depends on the deployment of the file.
    Some information about showing elapsed time can perhaps give you a start:
    Display Time Information
    Lilybiri

  • HT203167 I 'm playing clash of clans ,wheen whene I bay from App store The operation is successful but whene I try to by pile of gems I get this maseg (your purchase could not be completed )  plz your advise

    Dears ..
    I 'm playing clash of clans ,wheen whene I bay from App store The operation is successful but whene I try to by pile of gems I get this maseg (your purchase could not be completed )  plz your advise
    best Regards
    <Email Edited by Host>

    As these are public forums (most of us on here are fellow users) I've asked the hosts to remove your email address from your post.
    If you are also getting a message to contact iTunes support then you can do so via this page and ask them why the message is appearing (on these forums we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to retrieve the User Status on WBS Elements

    Hello,   could someone please tell me  how to retrieve the User Status for WBS Elements using ABAP?  Which table stores this information.
    Thanks.

    if you have the OBJNR there was also another FM status  in Se37 [link>>|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/changing-status-620444]
    also look in the similar requirement [discussion|http://sap.ittoolbox.com/groups/technical-functional/sap-bw/wbs-user-status-262089]

  • How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings?

    I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings? Please help. Thanks.

    You should have asked this before you tried: Changing username or short name- User Account and Short Name- OS X- How to change user account name or home directory name.

Maybe you are looking for

  • Slow performance when moving bunch of vector shapes

    Hi there, Photoshop CS6 Beta is soo slow in comparison to Photoshop CS5 when moving lots of vector layers. Check the videoa below please: CS6 - http://screencast.com/t/wBOzhTySdSf CS5 - http://screencast.com/t/ab7BDbgNxUYe - GPU Settings Enabled in b

  • Possible Audigy 2 ZS popping fix

    I'm not sure if something like this has already been posted, but I'll chime in my 2 cents anyways. I installed my Audigy?2 ZS card again last night after being annoyed for months with it and using my onboard audio because of the popping and crackling

  • I need to load v3.6 onmy Asus tablet to support a program that won't run with newest version

    i just purchased a Asus Transformer tablet. I need to use an online application, Angel, to participate in my college course. The college indicated that your latest version of Mozillia has compatibility issues with Angel. They have instructed us to us

  • Previous iphone 3.1 sdk's

    Where can I download previous versions of the iphone sdk's, because I only have the latest version of the sdk installed with xcode, which isn't supported in all the devices and in the developer site I can only found the 3.1.2 version.

  • Goods Reciept HU with Process Messages

    Hi, I need to GR handling unit (HU) managed finished goods to our process order using Process Messages which come from our MES system via MII.  The standard HU Process Messages seem to be more related to staging HU for GI to the order.  Has anyone do