How to get the ip of client that is using the server?

I am doing a FTP like system using Java. I would like to get the time and the IP of the client that want to download the files from the system. Does anyone know the method to do so?

If you're using plain sockets you may call socket's getInetAddress() or if you're using jsp / servlets you may call request.getRemoteAddr()

Similar Messages

  • I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !

    I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !
    I also tried resetting settings all to no avail ...I looked up some advice and watched utube video advice on how to fix without success..
    The volume control button on side does not work ,I got the iPad last August and wonder if it is a fault that means I must return it for replacement from where it was purchased ?

    The Retrospect you used way back when is no longer around. The company was sold and that company produced a new version of Retrospect - Retrospect 8.x
    So, as you've been told, you would have to be running a Tiger system with an old version of Retrospect software (5.x or 6.x - you would need to know) assuming you can find the software.
    As best I can remember you cannot extract files from a Retrospect backup except using the software since Retrospect did not normally make a file by file backup rather it created an archive of the files in the backup. I'm assuming that the EMC/Retrospect people have told you that old Retrospect backups are not accessible by Retrospect 8.x?

  • How to get  ServerSocket to tell client that it's not accepting?

    I've had a couple of other topics recently, concerning my attempt to write a client/server TicTacToe game for my final project in Data Comm. I've got almost all of what I want worked out this week, but I'm stumped on this one. The project spec includes some way of controlling access to the application on the server -- do some work on figuring out the limits of the resources, and set up a way to limit the number of clients that can connect at one time.
    I thought that for my purposes, for proof of concept, I would set it up so that up to 3 clients could play at one time, and up to 2 could be allowed to "connect, but wait for a turn" until someone playing logged off. Conceptually I can draw a flow chart of it, but what I can't figure is this -- I have a server object that accepts connections with ServerSocket.accept(), and sends off the socket created as an argument to a new thread of the ServerGame class. ServerGame has a static int for threadcount. I can code in ServerGame to limit it to 3 who can actively be allowed to play, and send a message back to someone who connects later to say, "Wait", and in the Server itself I can refuse to accept() if a 6th client tries to connect, but for that 6th client -- how can I get a message saying "You can't even connect now -- no room even in the queue"? If the server doesn't even accept(), what's the means of response, other than the poor client sitting there with an unresponsive button in his GUI? That's what happens now -- the first client that tries to connect when the server won't accept, his GUI just freezes. Not a good interface.
    Unfortunately this is a Data Comm class, and the teacher is new this year and comes from 25 years in industry and knows C/C++, but no java.

    My puzzlement is that I'm a beginner ( we just got introduced to the idea of sockets in class a month ago, and I chose java not only because I like it best but golly, the socket API in C and C++ is awful compared to java).
    My understanding of ServerSocket is that it does not make a connection that it can use itself, but passes off to something or someone. My model is to have a ServerGame class, threaded so the Server spawns a new thread of ServerGame for each new socket and passes the socket to the constructor of the new ServerGame thread. The it goes off and does its thing.
    So I don't understand what you mean by setting a flag (I understand flags, just not what the idea is in this case). And how can I call a function on a server on a different machine? Chicken and egg -- how can I communicate if I can't connect, and if I do connect the connection is sent off to the ServerGame, not the Server itself.
    Wait -- just thought of something -- is this what you mean? If I set a condition that recognizes I've reached the limit, ServerSocket could create a connection but NOT send it to the ServerGame, but to a temporary object of some kind, that just sends back a message and closes and dies?
    Sounds do-able, but time's up, I gotta get to school. I'll check in later
    Thanks a lot
    F

  • HT1918 How does one organise the apple ID so that one uses the same email address to have an account on both the UL and Belgian itunes stores?

    I have in the past created an Apple ID for use with the UK itunes store, because I want to read in English.  If I sign in it seems that this ID will only allow me to purchase from the UK store.  But I live in Belgium, so I can't download from the UK store.  So I tried to create an apple ID for the Belgian itunes store.  But I want to use the same email address as I used for the first apple ID I made (because I'm fed up of having to remember which email address I used for which account).  When I tried this, I just get a message saying that the email address is already in use for another account (which I know, because it's me who made that account).  Does anyone have a workaround for this?
    cheers
    Andrew

    I have tried again using the same password. and it still doesn't work.
    I'm presuming you went ahead and set up a new Apple ID, yes? Using the same password in more than one Apple ID has worked for me in the past, but I haven't tried it in a while so the tightened security may have changed that. You could use the same password but add "-UK" and "-BE", or something like that, to make it easier to remember.
    I understand what you mean about losing the ability to deal with UK purchased stuff, but this is becoming so inconvenient that I do want to delete that UK apple ID account.  I have looked everywhere I can think of on the apple website (apple id, itunes, support etc) and I can't find a link/eplanation/contact point that deals with deleting apple ID and itune store accounts.  Surely this must be possible?
    It's possible, but Apple is very reluctant to do it, and it's not something a user can do on their own. It would be better to just stop using the UK account rather than trying to get it deleted. Just remove your payment information and there should be little reason to have the account deleted. If you really want to try, though, you'll need to send a message to iTunes support specifying that you want the account cancelled.
    On a completely different matter, I have bought my son an ipod touch.  But since he is younger than 13 years old, how does one go about using the itunes store to get music onto his ipod touch?
    You would need to buy tracks for him; he's too young to have his own iTunes Store account. To control what gets synched to his iPod, this should help:
    http://support.apple.com/kb/HT1495
    Regards.

  • How to get a Sum of rows, when i use the property max. rows p. page ?

    Hi all.
    I've got a query and get a lot of rows (amounts) back.
    Now i want to have max. 21 rows per page.
    So, first i used the property "max. rows p. page"=21.
    But i want a have Sum-Field p.page too, which shows the sum of the amount p. page at a >fixed place (bottom, left) at the page.
    this didnt work well....
    Because when i have 30 rows, then the sum will shown at the second page (because the sum-field its after the repeating frame).
    ...Now i forgot the property and placed a function and two placeholder in the query like this:
    Function:
    :cp_row:=:cp_row +1;
    if (mod (:cp_row,21)=0)) then :CP_pagenr:=:CP_pagenr+1;
    Placeholders: cp_row, cp_pagenr
    Now i want to use :CP_pagenr to change the group - but Report Builder says: I cant... because placeholder are not allowed to change a group.
    So.. perhaps anyone can give me a hint how i can do this ?
    Thanks a lot...

    hello.
    that sound to me as you wanted a running total. check out the metalink knwoledge base and search for running total and you will find a note on how to do that.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get table and column names thats being used in SQL , that's generating all my reports on SSRS.

    Good day,
    I searched through the forum and cant find anything.
    I have around 300 published reports on SSRS and we are busy migrating to a new system.
    They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
    We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
    Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
    Your assistance is greatly appreciated.
    I thank you.
    Andre.

    There's no straightforward method for that I guess. There are couple of things you can use to get these details
    1. query the ReportServer.dbo.Catalog table
    for getting details
    you may use script below for that
    http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
    2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
    But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How is it possible to make sure that LV uses the same thread for several threadsafe DLL calls?

    Hello,
    i have a thread safe DLL and most functions are called from serveral threads from the LV apllication without problems.
    In case of an error i have to call an error handler function in this DLL (like WinAPI: GetLastError()) from the same thread which has called the function that failed before.
    I can't use the user interface execution because some functions need a long execution time and i don't want to balk the user interface.
    All other executions than the user interface execution have more than one thread and in most cases the DLL function calls were executed from different threads - so the error handling doesn't work...
    Any idea?
    Thanks for your help!

    Hmmm....
    How about wrapping all of your dll calls in a single VI (or an Action Engine ) and make sure the VI's thread is NOT set for "Same as caller".
    "Threadconfig.vi" (sp?) will also let you dictate the number of threads associated with an execution system. Set your target thread for "1".
    Not sure on the above.
    Please correct me if this is wrong!
    Ben
    Message Edited by Ben on 07-19-2007 08:26 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to: Get a list of mail users by using the Exchange Management Shell

    Hello every one, quick question: When I run this code below for VB, how will I see the results of the program? Is there anyway I can make the results appear in a message box?
    Function GetUsersUsingBasicAuth( _
        ByVal LiveIDConnectionUri
    As String, ByVal ScehmaUri
    As String, _
        ByVal Credentials
    As PSCredential, ByVal
    Count As Integer)
    As Collection(Of PSObject)
        Dim ConnectionInfo
    As WSManConnectionInfo = _
            New WSManConnectionInfo(New Uri(LiveIDConnectionUri), ScehmaUri, Credentials)
        ConnectionInfo.AuthenticationMechanism = AuthenticationMechanism.Basic
        Dim RemoteRunspace
    As Runspace
        RemoteRunspace = RunspaceFactory.CreateRunspace(ConnectionInfo)
        Return GetUserInformation(Count, RemoteRunspace)
      End Function
    Function GetUserInformation(ByVal
    Count As
    Integer, ByVal RemoteRunspace
    As Runspace) As Collection(Of PSObject)
        Dim RemotePowerShell
    As PowerShell = PowerShell.Create
        RemotePowerShell.AddCommand("Get-Users")
        RemotePowerShell.AddParameter("ResultSize",
    Count)
        ' Open the remote runspace on the server.
        RemoteRunspace.Open()
        ' Associate the runspace with the Exchange Management Shell.
        RemotePowerShell.Runspace = RemoteRunspace
        ' Invoke the Exchange Management Shell to run the command.
        Return RemotePowerShell.Invoke
    End Function

    All you need to do is enumerate through the Collection returned eg
    Dim commandResults As Collection(Of PSObject)
    commandResults = RemotePowerShell.Invoke()
    For Each obj As PSObject In commandResults
    MessageBox.Show(obj.Properties("DisplayName").Value.ToString())
    Next
    Cheers
    Glen

  • How to get items from a list that has more items than the List View Threshold?

    I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
    always seems to be thrown and I get no items back.
    I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
    ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
    but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
    but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
    throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
    Thanks.
    My Query:
    <OrderBy>
        <FieldRef Name='ID' Ascending='TRUE' />
    </OrderBy>
    <Where>
        <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
    </Where>
    My ViewXml:
    <View>
        <Query>
            <OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
            <Where>
                <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
            </Where>
        </Query>
        <RowLimit>2000</RowLimit>
    </View>
    Thanks again.

    I was using code below to work with 700000+ items in the list.
    SPWeb oWebsite = SPContext.Current.Web;
    SPList oList = oWebsite.Lists["MyList"];
    SPQuery oQuery = new SPQuery();
    oQuery.RowLimit = 2000;
    int intIndex = 1;
    do
    SPListItemCollection collListItems = oList.GetItems(oQuery);
    foreach (SPListItem oListItem in collListItems)
    //do something oListItem["Title"].ToString()
    oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
    intIndex++;
    } while (oQuery.ListItemCollectionPosition != null);
    Oleg
    Hi Oleg, thanks for replying.
    The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
    situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode  property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
    as well on that list of 700000+ items.
    Thanks anyway though

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • How do I get rid of an ad that is underneath the toolbars at the top of the browser?

    There is an ad for the Harry Potter movies that is underneath the two tool bars at the top of my browser. How do I get rid of it and return to the default

    Hold the option key when emptying the trash
    Jerry

  • My iPad has deleted 700 photos off the photo stream on that device.  The pictures are still on my Mac iPhoto in the photo stream.  How do I get them to reappear on the iPad?

    My iPad has deleted 700 photos off the photo stream on that device.  The pictures are still on my Mac iPhoto in the photo stream.  How do I get them to reappear on the iPad?

    When did this deletion happen?  Which version of iOS 8 do you have on your iPad? Depending on your settings you may not see My Photo Stream on the iPad any longer.  With iOS 8 "My Photo Stream" will only show on the iPad, if you did not enable iCloud Photo Library (Beta).
    See this link:  Get help finding your Photos in iOS 8 or later - Apple Support

  • I have a blue bar above the internet page tab that says "downloading the latest applications." It hasn't finished the downloading in the 2 weeks since I loaded Firefox. How do I get rid of it?

    After I loaded Firefox and used it the 1st time, a blue bar appears above the internet page tab that says "Downloading the latest applications". No matter how long I leave the internet and compute on, it never finishes downloading. And every time I restart Firefox, the same blue bar appears. How do I get rid of this?
    == This happened ==
    Every time Firefox opened
    == After I loaded Firefox the 1st time, and every time I open the Firefox browser.

    This can be a problem with the Silverlight plugin.
    See [[Troubleshooting plugins]]

  • How do I access the remote(requesting) clients IP address through the Portal API?

    How can I access the remote(requesting) clients IP address through the Portal API?
    On our 4.5 - IIS system, we can acces it using the Request.ServerVariables("Remote_Addr") in the ASP pages.
    We are deploying 5.0 on Java Portal and would like to be able to do this through the Portal's API so I can call it in one of our custom login Activity space or control etc.
    I have looked documentation for the HTTPServletRequest object. It seems like we should be able to access it through one of the methods getRemoteAddr if we can get a handle to HTTPServletRequest object through the Plumtree's framework.
    I think the XPRequest object encapsulates the HTTPServletRequest but I didn't see getRemoteAddr method listed in the Javadocs.
    Is there a way to access the client's IP address through the Plumtree's framework?
    I need to do this so we know the location of the user and in our business case we have fixed IP adresss which let us identify which location is user accessign the system from. We can't do this through preferences or profile because we have to use generic userid for the specifc group of users.
    Any help on this would be appreciated.
    Thanks.
    Vanita

    Hi, Vanita. For now, you can use
    stringsClientIP = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString();
    Hope that helps!
    Sarah

  • How to change the default BC image that shows in the address bar?

    Does anyone know how to change the default BC image that shows in the address bar? I want to swap it out so the client logo shows next to their URL.
    Thank you!

    Hi,
    If you are trying to change the favicon for your site,
    You can do it from Site Manager-> Page template -> Default Template
    Look for the code   <link type="image/x-icon" href="/Path for your image" rel="icon" />, and Click save.
    Now where you will use this template, it will display your favicon for that webpage instead of BC favicon. You can define it on Page directly if you are not going to use template.
    Please let me know if you have any doubt.

Maybe you are looking for

  • Unable to find table

    Hi, I get the following exception while trying to execute a query com.sybase.jdbc2.jdbc.SybSQLException: Table_name not present. Specify owner.objectname.... However the table does exist in the database. Also, this problem does not manifest always. A

  • How to outline multiple lines of text

    how to I outline multiple lines of text to create a filled outline around a group of text like this:

  • How to download ringtones on the iphone

    does anyone know of a good site or how i can download ringtones for my iphone... i cannot figure it out...

  • Script to add description and keywords to files from text file

    Can anyone write something up for me? I will admit I cannot do it myself, I do not know Javascript. I need to add keywords and a description to 1000's of images. I have a text file formatted as such for each 100 images. The script would need to ask f

  • Google calendar not synching

    Hi I have a Bold 9900. 7.1 software. BIS. GiffGaff (part of O2) service provider. I have several google accounts and have been running the emails and calenders off the BB very well for several years now. I use Goolge 2 step authentication. I recently