When client use socket to connect server, server how to get client IP

as topic

Your ServerSocket has an accept() method that gives you a Socket. The Socket class has a getInetAddress() method... I'll let you continue reading the API documentation from here.

Similar Messages

  • Java.io.IOException when to use WLST to connect admin server

    Hello experts,
    I am following this article to use wlst to connect to admin server from remote, but failed with below error.
    Oracle WebLogic Server 12c: Configuring and Using Node Manager
    >java weblogic.WLST
    wls:/offline> connect('superadmin', 'agile9', 't3://myadminserver.company.com:7001')
    Connecting to t3://myadminserver.company.com:7001 with userid superadmin ...
    The CompatabilityMBeanServer is not initialized properly.
    This might happen if the CompatabilityMBeanServer is
    disabled via the JMXMBean.
    To view the root cause exception use dumpStack()
    WLST detected that the RuntimeMBeanServer is not enabled. This
    might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
    Please ensure that this MBeanServer is enabled. Online WLST cannot
    function without this MBeanServer.
    Traceback (innermost last):
      File "<console>", line 1, in ?
      File "<iostream>", line 22, in connect
      File "<iostream>", line 648, in raiseWLSTException
    WLSTException: Error occured while performing connect : "Cannot connect to WLST."
    Use dumpStack() to view the full stacktrace
    wls:/offline> dumpStack()
    This Exception occurred at Tue Jul 22 20:45:53 PDT 2014.
    java.io.IOException
    java.io.IOException
    wls:/offline>
    I checked CompatabilityMBeanServer is already enabled in Admin Console
    Does anybody has any idea how to resolve?
    My Environment:
    weblogic 12.1.1.0
    OS: REL 6.0
    Java: 1.7.0_21
    Thanks
    Jie

    Hi,
    Thanks for the reply. There was some problem with the input parameters to the automated activity. That error is resolved now.
    I try to view the output of the automated activity, i.e, response of the web service call. I do an output mapping from the automated activity to a data object. But once I start the process and the automated activity executes, I could not see the output data in the context data in 'Operation Management --> Manage Processes'. The data object doesn't have any value. 
    The default trace doesn't have any error. I doubt if the web service is called at all!
    Any suggestions?
    Thank you.

  • Regarding mountain lion server: clients experience intermittent service connections. the server system log has the following error- Client handshake failed (6):113: Server not accepting client connections (any ideas???)

    regarding mountain lion server: clients experience intermittent service connections. the server system log has the following error- Client handshake failed (6):113: Server not accepting client connections. any suggestions would be greatly appreciated - thank you

    Hi Jason
    I was getting the same behavior after Apple support had me delete some plist files to get Airplay going. I was also getting the following error:
    the error occurred while processing a command of type 'writesettings' in the plug-in 'server vpn'
    I went into ~/Library/Preferences/ and /Library/Preferences/ and deleted every plist contating the word server. I had to re-set up my server (meaning walk through some intial steps) but all of my settings were still there after that and everything started working again.
    Just a thought, obviously try at your own risk but it worked for me.
    Kellen

  • How to create a Pooled VDI infrastructure using Win server 2012 as VM image?I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM

    I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM instead.
    Am I overlooking something?  Should I need to prepare the image in a different way? (Sysprep differently?)
    Thanks

    Hi,
    Thank you for your posting in Windows Server Forum.
    Can you specify the error which you are facing during VDI setup for server 2012?
    I might think that you need to check the memory setting for server 2012, as might happens that due to less memory you can’t setup the VDI setup properly. 
    Memory: If the Master VM is configured with static memory, it must have at least 1024 MB as startup RAM. If the Master VM is configured with dynamic memory, the maximum RAM must be at least 1024 MB.
    Please check beneath article for information.
    Windows
    Server 2012 2,500-user pooled VDI deployment guide (Doc)
    Single Image Management for Virtual Desktop Collections in Windows Server 2012
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • I recently upgraded my internet service with Comcast for faster internet.  When I user ethernet connection I get 50 MB download speed....when I use the wireless connection I get 10-20 MB speed.  I have an airport extreme...3-4 years old.  Why?

    I recently upgraded my internet service with Comcast for faster internet.  When I use an ethernet connection I get 50 MB download speed....when I use the wireless connection I get 10-20 MB speed.  I have an airport extreme...3-4 years old.  Why is the speed so different and are there settings I can change to increase the wireless speed?

    If your supposed to be getting 20 Mb/s down via your ISP and both Mac's are not getting that on the SpeedTest, then obviously your router appears to be the cause.
    Connect one Mac directly to the ISP's modem, power off/wait 30 seconds/then power on, then power on the Mac. The ISP will connect directly to the Mac, then run a SpeedTest.
    Then repeat the same for the other Mac. If both Mac's have a problem then it's possibly the ISP, the modem, your lines to them or on your property, or both Mac's are messed up.
    You'll have to keep searching for the cause. Call your ISP and ask then to run a test to see if your getting your 20 Mb/s to your modem, that should clear part of the problem.
    Diagnosing network issues

  • HT4929 I have (or had?) 2 alias  I followed the instructions to go from MobileMe to iCloud. But the alias stayed on MobileMe server (?) How to get this to iCloud?

    I have (or had?) 2 alias My main account is on iCloud. I followed the instructions to go from MobileMe to iCloud. But the alias stayed on MobileMe server (?) How to get this to iCloud? Not possible to put them into icloud as alias. How to keep  it working?HELP HELP because people sending me things to this email and since today no excess any more to the mobile me server? And how to move this?????
    <Emails Edited by Host>

    Firstly, I note that your profile states that you are using OS X 10.5.8, in order to use iCloud on your computer you need OS X 10.7.2 or better.
    Secondly, I have asked for your email address to be edited out. Post your address in an open thread is a sure way to be bombarded by unwanted email, remember it will be here long after you have resolved your problem, for automated detection software to find.
    If you want people to contact you, enable others to see your email address in your profile.
    Finally, are you sure that these additional addresses are aliases and not sub accounts on a family pack, aliases from MobileMe should transfer to an iCloud when you migrate.

  • When I try to buy something, I get an Apple-ID which is not the one I want to use, and I don't know how to get rid of it either, so that I can use my ID, which is in Mail, Contacts etc. The ID I get, I can't find, so that I can delete it. What to do?

    When I try to buy something, I get an Apple-ID which is not the one I want to use, and I don't know how to get rid of it either, so that I can replace it with my ID in Mail, contacts etc. The ID I get without wanting it, I can't find anywhere. I have to delete it. How do I solve this problem, anyone?

    My content was obtained through another ID, which popped up earlier. Now this one doesn't pop up, and my current ID doesn't pop up either, but another one. How do you find an ID which is not in the store, and not in Mail, contacts etc. either?
    Or is it possible to write the ID yourself when you want to buy something, not only to have it popped up being unable to be changed?

  • I can't seem to use the 'Check seats' link on Delta when I use Firefox but Safari works fine. I get the message 'not available at this time' when using Firefox but when I go to Safari it works fine.

    I can't seem to use the 'Check seats' link on the Delta Airlines site when I use Firefox but Safari works fine. I get the message 'not available at this time' when using Firefox but when I go to Safari it works fine. I love Firefox but this sucks!

    That issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies

  • When I use my ipad 4 half hours later, it getting hot ? is because the leather cover can't breath or because ipad itself?

    when I use my ipad 4 half hours later, it getting hot ? is because the leather cover can't breath or because ipad itself?

    The first thing that you should probably do is remove the cover, if it is getting that hot. If it cools down at all, maybe that cover isn't ideal for your iPad.
    But your iPad should get really hot and if I am reading your post correctly this occurs after a half hour of use?
    From your post its difficult to tell if you have an iPad 4, that gets hot after one half hour of use ....  or if you have an iPad, that gets hot after 4-1/2 hours of use.

  • I use iPhoto and want to know how to get the 'key photo' i select on my MacBook Pro to be the one that gets used on my iPhone when i sync them. Any ideas? also, i want the events to appear in the order i choose on my MacBook too

    I use iPhoto and want to know how to get the 'key photo' i select on my McBook Pro to be the same one that gets used on my iPhone 5s when i sync. i also want the events to appear on the iPhone in the same order i have them on my macbook. any ideas there too?

    Killerfinch wrote:
    My new yahoo account nestles comfortably in iCloud on the mine iPad.
    No, your Yahoo account is not in iCloud (which only handles iCloud mail), it is in Yahoo, and the Yahoo mail account is on your iPad.
    But the MacBook Pro will have none of it! I write this question now as I fear that I will be totally demented very soon and unable to formulate my thoughts clearly!
    Get the correct settings for your account from Yahoo and set it up manually.
    By the way, I also find the "password" issue problematical. It seems Apple want my Apple password rather than my eMail password. All very confusing.
    That would depend on what you are trying to do.

  • How to get Client IP address in oracle apps. Are there any API's.

    hi,
    I have one query
    ->How to get Client IP address in oracle apps. Are there any API's.
    regards,
    krishna

    Hi,
    this is very usefull
    however are this data stored on the db or is only a temporary view?
    I would like to have to keep track of all client connected.
    Thanx a lot

  • How to get client IP in custom UCM Service

    how to get client IP in custom UCM Service ?

    have you tried
    binder.getLocal("REMOTE_ADDR");
    Let us know how you get on
    Tim

  • I accepted/installed an update for iMovie and it turns out that this version is not compatible with my graphics card. So now I can no longer open or use iMovie.  Any ideas on how to get around this - how to revert to the previous version.

    I accepted/installed an update for iMovie and it turns out that this version is not compatible with my graphics card. So now I can no longer open or use iMovie.  Any ideas on how to get around this - how to revert to the previous version??

    Look in your Applications folder.  If your system behaved as expected, you should have an iMovie 9.0 folder in your Applications folder.  Apple moved the old version there as even they suspected the new versions was a train wreck.

  • VPN client using CLI on windows 2003 server

    Hello, first time poster here. Have an interesting issue I'm hoping to find help with.
    I'm using the VPN client (I have version 4.8.01.0300) in CLI mode (called from a script) to connect to a remote site. Got the connection setup and all working fine except for one small detail. Hopefully I can explain this well...
    I want this connection to run fully unattended as it will run numerous times per day, every day. The issue is the little pop-up message saying "VPN has disconnected".
    When I first setup the connection, it was on windows XP and everything was golden. I could issue the command : vpnclient connect <name> user <userid> pwd <passwd> sd, <other stuff>, vpnclient disconnect and all worked as expected.
    Then I installed same stuff on Windows 2003 server. Issuing same connect command gives error: "user authentication failed". Then I discovered that if I first launched the vpn client GUI then the CLI command, it would connect without error - but then the "disconnected" pop-up window came along.
    So - can I either:
    - Run vpn client in CLI mode without the GUI running.
    - Suppress the pop-up.
    Thanks in advance.
    Scott

    Hi,
    Thank you for the post.
    Please try register MSI installer or clean boot your system to install FEP client.
    Registered MSI Installer following the steps below:
    1.Run "cmd"--Browse to the "%systemroot%\system32" directory and execute: "msiexec /regserver" 
    2.Change directories to "%systemroot%\SysWow64" and execute: "msiexec /regserver" 
    3.Reboot the server
    http://technet.microsoft.com/en-us/library/ff823833.aspx
    If there are more inquiries on this issue, please feel free to let us know.
    Regards
    Rick Tan
    TechNet Community Support

  • Direct Connection between clients using sockets

    Hi, I'm a new user and i have a problem with sockets:
    The question is how can i directly connect two users that are already connected to a server in other machine???
    I mean
    user1 is connected to server
    user2 is connected to server
    user1 tries to communicate with user1 but don't want to use the server, and the server only provides the client1's ip
    I first thought to do this:
    user2 asks to server for the info of a client1-server waiting for connections, and i think it could work fine, but only if the ports are not closed by firewall, because client-server will be running in a transparent mode for user and user may not know anything about servers, sockets, ports, etc. the user only will work with a gui or something else and that's all
    Does anybody know what can i do to make this possible???
    PD
    Sorry for my bad English

    It can be implemented like you said. Make one of the clients open a serversocket and pass the ip and port number through the server to the other client with information on where to connect.
    If you're going to use direct connection between clients a lot then I would recommend that every client open a default serversocket at startup and register that information with the server and then every other client can ask the server for the ip and port to whatever client they wish to open a direct connection to.
    Be aware that clients often are behind NATs and firewalls, so if need to deal with those issues you got to use hole punching (http://en.wikipedia.org/wiki/hole_punching) - pref on a known port like 80 - and to deal with the less frequently used application firewalls you can use http encapsulation in addition.

Maybe you are looking for

  • Getting the name of files being extracted

    Hello all: I have a script that is extracting files from a zipped file.  I am trying to display the name of the file as it is extracted.  Here is what I have: foreach($item in $zip.items()) $shell.Namespace("E:\APPs\Folder").CopyHere($item, 0x14) Wri

  • WebDynpro configuration steps for E-Recruiting

    Hi, I'm implementing SAP E-Recruiting 6.04. My systems include ECC600, Portal 701, and I already setup TREX 700 and connected to SAP sucessfully. What are steps I should follow to configure WebDynpro ABAP for my E-Recruiting? Also, how would I config

  • TextField1.setText("fahimaamir"); this code give me error in netbeans 6.1

    hi master sir i use netbean 6.1 i have one textfield and one button in page when i use this code in button public String button1_action() { textField1=("fahimaamir"); return null; that give me error line in textField1=("fahimaamir"); this code when i

  • Template code is displaying in Firefox

    For some reason, when viewed in Firefox my site now displays this right above the body text: <!-- InstanceBeginEditable name="Body -- editable" --> It used to display properly.  And now it does not.  Also, when viewed with IE8 it displays fine. I've

  • My scenario soap to soap scenario

    i am new in pi, Can u explain how to create the multiple operations at receiver side.