Skip to Content
avatar image
Former Member

Could not connect to host localhost on port 21212

Trying to run sapinstgui from Windows Server , while running sapinst on AIX , getting the following error, Please help

Error while connecting to communication partner - see preceeding messages.

Could not connect to host localhost on port 21212.

java.net.ConnectException: Connection refused: connect

java.net.ConnectException: Connection refused: connect

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    Nov 30, 2011 at 08:58 AM

    use GUISERVER_DIALOG_PORT=<port_number_gui_server_to_gui_client>

    To see a list of all available SAPinst properties, start SAPinst as described above with the option ./sapinst -p.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 26, 2011 at 08:58 PM

    Hi Anbu,

    Looks like this port is being used by other service in the server. Please try to use other port.

    Good Luck.

    Thanks,

    Siva Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 27, 2011 at 02:46 AM

    Hi ,

    Please enter the IP or hostname of the AIX server in place of localhost in the sapinstgui in the windows server. Also check if the port 21212 is being occupied on the AIX server. Then change the port by appending the argument GUISERVER_DIALOG_PORT=<new_port_number> to the sapinst.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 27, 2011 at 06:04 AM

    Hi,

    You need to refer instalaltion guide for checking OS level pre-requisites on AIX.

    Also before running SAPINST , have you set the environment variables

    JAVA_HOME

    SAPINST_JRE_HOME

    Let us know your observation on OS pre-requisites and env variables.

    Regards,

    Deepak Kori

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 28, 2011 at 09:54 AM

    ./sapinst SAPINST_DIALOG_PORT=<xxxxx> GUISERVER_DIALOG_PORT=<xxxxxx> use this command

    it should work

    giva a port other than 21212

    Edited by: Venkatarao Daggupati on Nov 28, 2011 10:55 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 01, 2015 at 08:37 PM

    Maybe you are making the same mistake I made: are you trying to install SAP GUI? If that is the case, sapinstgui.exe is not what you are looking for. SAP GUI installer is in


    Frontend&tools\SAP_GUI_for_Windows_7.20_Patchlevel_7_SDN_version_20110701_1428.exe

    This tutorial is the best I have found:
    How to install SAP NetWeaver Application Server ABAP 7.03 SP03 Trial – Ready for ABAP in Ecplipse (AiE)

    Good luck! 😉

    Add comment
    10|10000 characters needed characters exceeded