Giter Site home page Giter Site logo

Comments (8)

hubertgee avatar hubertgee commented on September 26, 2024

For regular Windows api server, the session ID is always 1 because it only support one session.

For windows connection manager, it supports up to 10 sessions like the Linux api server:
platform='connection_manager'

  # Change 8021 to the session ID that you want to connect to.
  session = testPlatform.Sessions.find(Id=8021)

from ixnetwork.

muthvar1 avatar muthvar1 commented on September 26, 2024

Hi Hubert,
This was reported by another engineer and as you can see in the output he provided above, he did use session id 1.. but the call seemed to hang. It is possible there is something we are missing from our side, but can you confirm (from your tests) using session id 1 works for Windows and it does give a handle to the session object?

from ixnetwork.

hubertgee avatar hubertgee commented on September 26, 2024

I connect to an existing Windows session quite often by the way how you showed it and I have not experienced any hanging. Does it hang if doing a testPlatform.Sessions.add() ?

from ixnetwork.

muthvar1 avatar muthvar1 commented on September 26, 2024

Yeah.. looks like even an add does hang. Is something not set correctly on our Windows api server?
JFYI, because of the proxy settings on our windows VM.. we couldn't open up the api browser either on the the windows client. Trying to fix that too. Hoping that's not the cause for this issue?

from ixnetwork.

hubertgee avatar hubertgee commented on September 26, 2024

We have other customers who configures proxy server in their Windows and that caused connection problems. As soon as the proxy server was disabled, connection works fine. Try disabling the proxy server temporary to see if that fixes the problem and go from there.

from ixnetwork.

muthvar1 avatar muthvar1 commented on September 26, 2024

Yeah tried that too for localhosts and now it just hangs.. so looks like there is some problem in accessing the api browser itself on the client.. Not sure what the problem is.
All of us seem to be seeing the same issue. Should we open a support ticket to get this resolved?

from ixnetwork.

therkong avatar therkong commented on September 26, 2024

from ixnetwork.

muthvar1 avatar muthvar1 commented on September 26, 2024

This needs a change in how we start the IxNetwork client in Windows. Theresa from support group helped us on this. Closing this issue with resolution below.

From: Theresa Kong [email protected]
Date: Tuesday, April 9, 2019 at 3:03 PM
To: Sameer Patel [email protected], "Varghese Muthalaly (vamuthal)" [email protected], Hubert Gee [email protected]
Subject: RE: cannot connect to session on windows IxNetwork API server

I started my ixNet API Server with -restInsecure mode. In this mode, http is used instead of https.
And yes, I can connect.

If you started ixNet API Server without -restInsecure, it uses https. There are few things that can go wrong in this mode.
If you check the Windows Events log, there might be errors that may indicate the issue.

  • Error 11001 is permission issue. Make sure you have
    read/write permission in "c:/program data/microsoft/crypto/rsa/machinekeys" folder for the uid that started ixNet API Server

  • Error 40 is the tls 1.2 issue.
    need to add a regkey below and restart the PC
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server] "Enabled"=dword:00000000
    Note: there was SSL key but not TLS 1.2 key
    Restart of the PC is required after adding the regkey

Or you can restart your ixNet API Server with -resetInsecure option. This can be done in the Property window of the ixNet API Sever shortcut.

from ixnetwork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.