Skip to content

Commit

Permalink
fix: launch_mapdl with specific ip value (#2725)
Browse files Browse the repository at this point in the history
* fix: launch_mapdl with specific ip value

* Simplying

---------

Co-authored-by: German <[email protected]>
  • Loading branch information
clatapie and germa89 authored Feb 2, 2024
1 parent 9acfbc6 commit fb34bc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ansys/mapdl/core/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,8 @@ def launch_mapdl(
if ip is None:
ip = os.environ.get("PYMAPDL_IP", None)

if not ip and ON_WSL:
if ip is None:
if ON_WSL:
ip = _get_windows_host_ip()
if ip:
LOG.debug(
Expand Down

0 comments on commit fb34bc3

Please sign in to comment.