Skip to Content

GUI WSAECONNREFUSED - after hostname change

Hello together,

we have done a hostname change on one of our test-servers.

Now we facing the problem, that the system (db + SAP) is up&running, however it can't be connected via SAP GUI.

The error "WSAECONNREFUSED: Connection refused" appears.

We have changed the hostname in the profiles and also DB-configuration.

SAP is starting fine on the host.

And db is also working.

I've also tried to connect from SAP-Logon via IP to the host, however it does not work.

Is there any other setting I have to change?

Or what else is necessary, that I can connect via GUI?

Kind regards

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    Posted on Oct 03, 2016 at 11:44 AM

    Hello together,

    thx a lot for help, I really appreciate it.

    I've found already some reasons for the problem.
    A very interesting error was found in dispatcher-log.

    Which did show, that the hostname isn't allowed to be longer than 13 characters.

    (This was in relation with the disp-profile).

    After that I got another problem, that the dispatcher was shutting down directly after startsap.

    I found, that the processes can't connect to the DB.

    It seems, that in db-connection still the old name is configured.

    I will search and provide a status after a while.

    Kind regards

    Add a comment
    10|10000 characters needed characters exceeded

    • I could now solve the problem.

      There was one env-variable left, which I could set now via $/home/.dbenv.sh

      So the root cause for this post was the hostname, which was to long and the second problem was the hostname in the dbenv.sh.

      Kind regards and thank you to all persons for help!!!!

  • Posted on Sep 29, 2016 at 12:47 PM

    Hi Anon,

    What is the latest errors under usr\sap\<SID>\<instance>\work.

    Regards,

    Ning

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Christian Paminger

      Hi Anon123,

      Can you see if you can reach the hostname from your client PC?

      just open a console and execute the command: "ping hostname".

      In positive answer

      execute the follow command: "telnet hostname sapgw<number>

      in negative answer please check the definition of sapgw<number> in C:\WINDOWS\System32\drivers\etc\services

      Cheers

  • Posted on Sep 30, 2016 at 11:52 AM

    Hi,

    Can you install a SAP GUI on the server and try to connect?

    Is there a firewall running?

    Kind regards,
    Martin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 30, 2016 at 01:56 PM

    just use IP the address in the application server field in the GUI connection.

    If it works, you have a network issue...

    if it doesn't, you got problems

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2016 at 01:06 PM

    Hi,

    Can you share the output of the command. Execute thos commands with <sid>adm user:

    change the number of your instance numeber : nr:

    <sid>adm 54> sapcontrol -nr 0 -function GetProcessList

    29.09.2016 14:57:26

    GetProcessList

    OK

    name, description, dispstatus, textstatus, starttime, elapsedtime, pid

    msg_server, MessageServer, GREEN, Running, 2016 05 18 09:59:28, 3220:57:58, 13745

    disp+work, Dispatcher, GREEN, Running, 2016 05 18 09:59:28, 3220:57:58, 13746

    igswd_mt, IGS Watchdog, GREEN, Running, 2016 05 18 09:59:28, 3220:57:58, 13747

    gwrd, Gateway, GREEN, Running, 2016 05 18 09:59:46, 3220:57:40, 13786

    icman, ICM, GREEN, Running, 2016 05 18 09:59:46, 3220:57:40, 13787

    sapsed02:sedadm 55>

    And also this command:

    <sid>adm sapcontrol -nr 0 -function GetAccessPointList

    29.09.2016 15:03:13

    GetAccessPointList

    OK

    address, port, protocol, processname, activ

    127.0.0.1, 8000, HTTP, icm, Yes

    172.16.50.XX, 8000, HTTP, icm, Yes

    127.0.0.1, 0, SMTP, icm, Yes

    172.16.50.XX, 0, SMTP, icm, Yes

    127.0.0.1, 50013, HTTP, sapstartsrv, Yes

    172.16.50.XX, 50013, HTTP, sapstartsrv, Yes

    127.0.0.1, 50014, HTTPS, sapstartsrv, Yes

    172.16.50.XX, 50014, HTTPS, sapstartsrv, Yes

    127.0.0.1, 3300, RFC, gwrd, Yes

    172.16.50.XX, 3300, RFC, gwrd, Yes

    127.0.0.1, 3200, DPTM, disp+work, Yes

    172.16.50.XX, 3200, DPTM, disp+work, Yes

    127.0.0.1, 3900, MS, msg_server, Yes

    172.16.50.XX, 3900, MS, msg_server, Yes

    127.0.0.1, 3600, MS, msg_server, Yes

    172.16.50.XX, 3600, MS, msg_server, Yes

    127.0.0.1, 8100, HTTP, msg_server, Yes

    172.16.50.XX, 8100, HTTP, msg_server, Yes

    127.0.0.1, 40000, IGS, igsmux, Yes

    172.16.50.XX, 40000, IGS, igsmux, Yes

    127.0.0.1, 40080, HTTP, igsmux, Yes

    172.16.50.XX, 40080, HTTP, igsmux, Yes

    127.0.0.1, 40001, IGS, igspw, Yes

    172.16.50.XX, 40001, IGS, igspw, Yes

    127.0.0.1, 40002, IGS, igspw, Yes

    172.16.50.XX, 40002, IGS, igspw, Yes

    Did you change the instance number ?

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.