Getting the ip of the user

I'm making a client server side java applet and i want to take the ip adress of the user who tries to open a socket is something like that possible if it is how?
Thanks

I made my code like this
ServerSocket servsocket = new
socket = new ServerSocket(port);
InetAddress ip =
Address ip = servsocket.getInetAddress();
String updatesql = "UPDATE onlinedestek
onlinedestek set online='1',ip='"+ip.toString()+"'
where username='"+textField1.getText()+"'";and like i said its writing the ip value as
0.0.0.0/0.0.0.0
may i fix it?Is this code from the applet or server? The server needs to listen to a server socket, and call accept. The applet needs to connect to the server socket, using a normal socket. The accept call on the server will return a socket when a connection has been established, and that socket will give you the ip-address of the applet.
/Kaj

Similar Messages

  • How to get a formula from the user from a text box in a webpage

    Hi. I would like to know how to get the formula from the user who enters in a textbox. This formula can have any number of variables starting with a and goes on.
    The complexity of the formula can go upto sin, cos, ln, exp. Also user enters the minimum and maximum values of these variables. Based on a specific algorithm (which I use) I would calculate a *set of values, say 10, for each of these variables, substitute in the formula and based on the result of this formula, I select ONE suitable  value for each of the variables.
    I don't know how to get this formula (which most likely to be different each time) and substitute the values *which I found earlier.
    Kindly help me out in this issue.
    Thanks

    The textbox is the easy part. It's no different than getting a String parameter out of an HTTP request.
    The hard part is parsing the String into a "formula" for evaluation. You'll have to write a parser or find one.
    Google for "Java math expression parser" and see what you get.
    Or write your own with JavaCC.
    %

  • Get the values that an user write in textbox with typed_context

    Thanks for your time
    I want to verificate, the values (product configuration) that an user have introduced,
    I have written this code to get the values and verificate this.
      DATA:
          lr_info   TYPE REF TO cl_crm_bol_entity.
      lr_info ?= ME->typed_context->ISUORDERITEM->collection_wrapper->get_current( ).
    lr_info has an atritbute  T_EXTENSION_FIELDS, this is a table with the values of the product configuration, but I don't know how I can access to this values.
    Could you help me, please??
    Or other option to get the values to verificate this ??
    Thanks

    When I get the solution, I will post here, thanks
    Edited by: Javier Garcia on Oct 20, 2008 3:44 PM

  • From which table we can get the Role of the User in SRM

    Hi  All,
        I need to prepare a report which displays the user and his role in srm. So from which table i can get  the role of the user if i have the Userid.
    Thanks
    Channappa Sajjanar

    Hi
    t- code
    SUIM->rOLES->BY USER ASSIGNMENT
    SELECT WITHASSIGNMENT OF USER = username
    AS A OUTPUT YOU MAY GET ROLE ASSIGNED TO THAT USER.
    if you want which FM - you debug while executing this report.
    regards
    Muthu

  • Yosemite UPGRADE, Apps that I try to update fail with the message that connection to App Store failed, then i get a message that the updates were purchased by another user ID or purchase cancelled. All five updates have this error

    AFTER I UPGRADED TO YOSEMITE, I TRIED TO UPDATE THE FIVE APPS THAT I WAS BEING NOTIFIED NEEDED UPGRADING (IMOVIE, IPHOTO ETC). I TRIED TO UPDATE VIA THE APP STORE BUT GOT A MESSAGE "UPGRADE NOT POSSIBLE WITH THIS APPLE ID BECAUSE IT WAS EITHER BOUGHT BY A DIFFERENT USER OR THE ITEM WAS REFUNDED OR CANCELLED." I DO NOT HAVE A PROBLEM SIGNING ON TO ICLOUD OR ANY OF THE OTHER SERVICES USING MY APPLE ID, I ALSO CHANGED THE PASSWORD AT THE PROMPTING. SO I'M NOT SURE WHAT IT MEANS. WHAT CAN I DO TO UPDATE MY APPLICATIONS?

    Please test after each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes. Keep in mind that no one here represents Apple or can help with customer-service issues.
    Step 1
    A purchased app can only be updated by signing in to the App Store with the same Apple ID that was originally used to buy it. There's no way around that limitation, which also applies to free apps. If you can't sign in with the buyer's ID, delete the app and reinstall it. You'll have to pay for it again, if applicable.
    Step 2
    If you get the alert when trying to update a bundled iLife app, select the Purchases page in the App Store and locate the app in your purchase history. If there's a button marked ACCEPT on the right, click it.
    If you have a used Mac, the bundled apps were linked to the original owner's Apple ID and can't be transferred to you. Reportedly, customer service has issued redemption codes to some second owners who asked, but it's not guaranteed.
    Step 3
    If you're trying to update iLife or iWork apps that were installed from a purchased DVD, or if you have a refurbished Mac bought directly from Apple, contact App Store customer service for a redemption code. You may be asked for the part number of the DVD.
    Step 4
    From the App Store menu bar, select
              Store ▹ View My Account
    Enter your Apple ID password at the prompt. At the lower right corner of the window that opens, click the Reset button. Close the window.
    Step 5
    According to a report, the error can result from changing the language setting of your Apple ID account. I can't confirm.

  • HT4796 I used migration to transfer iTunes from pc to mac book. It had me set up another user account. Now i have 2 user accounts and i have the iTunes on the wrong one. How do i get the iTunes on the original account.

    I used migration to transfer iTunes from pc to mac book. It had me set up another user account. Now i have 2 user accounts and i have the iTunes on the wrong one. How do i get the iTunes on the original account.

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • HT204053 hi, I'm a pc user and have just created an apple id and password. I have also downloaded the icloud for pc, as I need to access an ical on there. When it comes to signing in with my apple id, I get the message that the apple id is valid but not a

    Hi, I'm a pc user and am trying to access an ical via the icloud. This ical houses information about work etc and it is quite important that I can gain access to it. To that end I have created an apple id and password and downloaded the icloud for the pc. However , when I get to the sign in page and use my apple id, I get a message to the effect that my apple id is ok, but its no good for an icloud account/ or I dont have an icloud account. I've trawled thru lots of help pages and nothing points me in the right direction. I've been on this for over 3 hours today and getting nowhere....Can somebody please help, I'm starting to lose the will to live over this 
    Steve,
    Devizes
    Wiltshire

    You must create the account using an Apple device, a Mac (Lion or greater) or an IOS device (IOS5 or greater). Having done that you will be able to sign in from your Windows machine.
    FYI, iCal is an application that can display calendars from iCloud (and others) it is not a calendar itself, merely a calendar client. In Windows Outlook is the calendar client.

  • ITunes settings reset with every new version, and I get: "...the information on the iphone is synced with another user account"

    Windows 7 64-bit with MS Outlook 2010. I've seen this now probably 10 times. When I first installed iTunes, I selected:
    Preferences -> Devices -> "Prevent iPhonse, iPhones and iPads from syncing automatically".
    and on my iPhone, I selected:
    Info -> Sync Contacts with: Outlook.
    Info -> Sync Calendars with: Outlook
    Info -> Other -> Sync notes with: Outlook
    This works great, and the settings stick.  As soon as apple releases any new version (even minor) of iTunes and I install, I immediately receive: "...the information on the iphone is synced with another user account", and have to merge my calendar and contacts, but then once I get into iTunes, I find that ALL of the above settings (prevent syncing, sync calendar, contacts, notes) get reset and are turned off! I am running as a user account with Admin privaleges, but I don't right-click -> "Run as administrator" when I perform the iTunes update.
    To reiterate, once I change the settings back, things work normally until the next iTunes update at which it gives me that sync error, and resets my sync options.
    Any idea? Thanks!
    -Brian

    Is someone else using the PC and iTunes?
    Create another user for the PC with your name, and try syncing that way.
    This way it wont conflic with the other user.

  • How to get the list of IDM users in a workflow.

    Hi,
    I wanted to get the list of IDM users in a workflow into a list.Now I tried to use getObjects Method,I do not have the display session here,I passed the workflow context or WF_Context.But it is giving exception like context null .
    I used the same method in a form and it worked.How can I get the list of users in a workflow.It is for customizing reports.
    Thanks and Regards,
    Pandu
    Any Idea on how to customize reports including attributes from resources and auditing attributes etc.Any help would be really great.
    Thank you.

    Hi John,
    I get this exception WorkItemForm: no id.
    This comes when I click on the other column.I generate the data needed in a report and display it as a sorting table when I get the data.
    I want to give the user ability to sort data by different columns.But when I click any column I get the exception
    WorkItemForm: no id
    How can I save a workitem on a manual form before invoking it from a manual action.
    Here is the code snippet
    <Field name='tblUsers'>
            <Display class='SortingTable'>
              <Property name='selectEnable' value='false'/>
              <Property name='align' value='left'/>
              <Property name='linkEnable' value='false'/>
              <Property name='sortEnable' value='true'/>
              <Property name='width' value='400'/>
              <Property name='columns'>
                <List>
                  <String>Account id</String>
                  <String>First Name</String>                      
                </List>
              </Property>
            </Display>      
            <FieldLoop for='row' in='_searchList[*]'>
              <Field name='enduserId'>
                <Display class='Label'>
                  <Property name='value'>
                    <block trace='true'>
                      <invoke name='getAccountId'>
                        <ref>row</ref>
                      </invoke>
                    </block>
                  </Property>
                </Display>
              </Field>
              <Field name='lblfirstname'>
                <Display class='Label'>
                  <Property name='value'>
                    <invoke name='getAttribute'>
                      <ref>row</ref>
                      <s>firstname</s>
                    </invoke>
                  </Property>
                </Display>
              </Field>
         <FieldLoop>      I think I may need to save some workItem,That is why this may be giving the error.How can I correct this.
    Thanks,
    pandu

  • I lost an xcel doc. Tried to find the Library folder in Users not there when use Finder. But when trying to upload a photo, iphoto found the library folder I can see my doc in Office 2011 Autorecov, but can't access it! How do I get User to show Library

    I lost an xcel doc a couple of days ago. Tried to find the Library folder in Users but not there when I use Finder (even when I do shift-command-G). But when trying to upload a photo in iphoto I found the library folder in Users. I can see my doc in Office 2011 Autorecovery, but can't access it! How do I get User to show Library then I can get to my long lost document?

    The auto recovery dat should be in the Microsoft User Data folder in your documents folder, not in the Library. However, I Haven't had to look recently.

  • Time Machine on my iMac won't open iPhoto. It goes to desktop screen automatically. When I select User/Picture/Iphoto library it only brings up the preview page with the size of the folder. I can't get into the library to look for lost photos.

    Time Machine on my iMac won't open iPhoto. It goes to desktop screen automatically. When I select User/Picture/Iphoto library it only brings up the preview page with the size of the folder. I can't get into the library to look for lost photos.

    Thank You. This helps me alot to get into the masters and to see events and photos in a utilitarian way, but it is not as easy as viewing the normal iphoto format to find photos.  Can I do something else or did I not do something right to not see normal iphoto in Time Machine ?

  • Never had trouble before with my incoming mail but just now I get a messege saying the user name or password for verizon is incorrect on my iPad but is fine on my home computer what's wrong with my ipad

    Never had trouble before with my incoming mail but just now getting messege that says the user name or password for verizon is incorrect yet my home computer is fine only have this od my iPad

    I experienced same problem tonight and called Verizon technical support and they walked me through the settings on iPad. Took about 5 minutes. Basically it involved changing incoming.verizon.net to pop.verizon.net and changing outgoing.verizon.net to smtp.verizon.net. But it's worth the call to ensure other settings are OK. Evidently, change at Verizon was effective today!

  • How to get the list of actie users in the moss website !!

    Hello Everybody,
    I need to get the list of active users with access in the moss websites like following format.
    User name         User mailid       permission
    one of the project manager requested to find list of active users with user accesses in the moss website.
    he wants to modify the user permissions.
    Kindly suggest me how to get the users with permissions.
    Thanks.

    Hi,
    I have developed that code to retrieve the users, groups and permissions
    if (orole.Member.PrincipalType.ToString() == "SharePointGroup")
    lvigroup = new ListViewItem();
    lvigroup.Text = orole.Member.LoginName;
    // args.GroupsList.Items.Add(lvigroup);
    DoUpdate1(lvigroup);
    Group group = clientContext.Web.SiteGroups.GetById(orole.Member.Id);
    UserCollection collUser = group.Users;
    clientContext.Load(collUser);
    clientContext.ExecuteQuery();
    foreach (User oUser in collUser)
    lvigroup = new ListViewItem();
    lvigroup.Text = "";
    lvsigroup = new ListViewItem.ListViewSubItem();
    lvsigroup.Text = oUser.LoginName;
    lvigroup.SubItems.Add(lvsigroup);
    //args.GroupsList.Items.Add(lvigroup);
    DoUpdate1(lvigroup);
    // MessageBox.Show(oUser.LoginName);
    RoleDefinitionBindingCollection roleDefsbindings = null;
    roleDefsbindings = orole.RoleDefinitionBindings;
    clientContext.Load(roleDefsbindings);
    clientContext.ExecuteQuery();
    //permission level
    lvsi = new ListViewItem.ListViewSubItem();
    string permissionsstr = string.Empty;
    for (int i = 0; i < roleDefsbindings.Count; i++)
    if (i == roleDefsbindings.Count - 1)
    permissionsstr = permissionsstr += roleDefsbindings[i].Name;
    else
    permissionsstr = permissionsstr += roleDefsbindings[i].Name + ", ";
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • I ordered Illustrator for another user.  I received an invitation that was accepted, logged in and tried to change the account to the name and email of the person it was ordered for.  How can I get this changed and the invitation sent to the right person?

    I ordered Illustrator via creative cloud for another user.  I received an invitation that was accepted  and tried to change the account to the name and email of the person it was ordered for.  How can I get this changed and the invitation sent to the right person? 

    Cloud as a Gift https://forums.adobe.com/thread/1665610

  • How to I get rid of pop up user account control "do you want to allow the following program to make changes to your computer" I have windows 7 professional.

    I keep getting an annoying pop up the says "User Account Control" "Do you want to allow the following program to make changes to your computer"
    == This happened ==
    Every time Firefox opened
    == Two days after I downloaded Firefox and set as my default browser.

    Check that you do not run Firefox as Administrator.
    Right-click the Firefox desktop shortcut and choose "Properties".
    In the Compatibility tab, make sure that Privilege Level: "Run this program as Administrator" is not selected.
    You also need to check the Properties of the firefox.exe program in the Firefox program directory.
    If you can't make the changes then you need to start Windows Explorer as Administrator.

  • How can i get the list of all users present in the LDAP

    Hi Experts,
    How can i get the list of all users present in the LDAP ?
    Is there any API or function Code to get all user list??
    Please help me out!!!
    Help will be rewarded

    Well it will depend on exactly where your UME configuration points to in the LDAP tree but yes, it is possible to get all users.  Something like the following should do it:
    import com.sap.security.api.*;
    import com.sapportals.portal.prt.component.*;
    IUserFactory iuf;
    ISearchResult isr;
    IUser user
    String userid;
    iuf = UMFactory.getUserFactory();
    isr = iuf.getUniqueIDs();
    you will need to iterate the ISearchResult object but you can get IUser objects by
    userid = (String)isr.next();
    user = iuf.getUser(userid);
    then you can imanipulate / identify / or whatever you need with the user object
    Haydn

Maybe you are looking for

  • Problems viewing calendars in iCal after OS upgrade

    I just upgraded my OS from 10.4 to 10.6, and now several of my calendars within iCal don't show up (2 show up, but 4 are "missing"). I've synced with my iPhone, and all the events are still listed on my phone, but I can't see them on my computer. Any

  • Customize the layout set used when opening a folder in search result list?

    Hi, I have created a search result iView that uses a predefined search query to show a list of folders. If I click on a folder <i>(rnd:displayname(contentLink)</i>) its content is displayed in a new window. Here the layout set Consumer Explorer (defa

  • How do I get my photo's from my mac to my ipad.

    I just got a new Ipad for Christmas.  Very cool, but I am having a difficult time getting my data that is on my Mac (which doesn't have Icloud) to the ipad.  If I buy Iphoto - will I be able to log in to my macs Iphoto and and drag and drop the pictu

  • HTTP RECEIVER Stopping on CALL ADAPTER

    Hi All, I'm having a problem with HTTP Receiver adapter, It's an IDOC that need to send to a HTTP Listener. Everything works until send the XML to the http listener, I have made a single listener in java to verify how this XML is coming from adapter.

  • HT1222 Why can't I update to i07?

    I need help updating my iPhone to i07