change py3270 port

141 views
Skip to first unread message

Carlos Gomez

unread,
Oct 22, 2019, 12:19:45 PM10/22/19
to BlazeLibs
I'm using the py3270  emulator but I need to change the port it connects to. It connected directly to the 23 but I want to change it. 
I have tried 
from py3270 import Emulator
e = Emulator(visible=True)
e.connect('HOST':'992')

and it does not work, and I used to only have the host but I need to change the port

from py3270 import Emulator
e = Emulator(visible=True)
e.connect('HOST')

STaRNiGHT

unread,
Oct 23, 2019, 2:19:19 AM10/23/19
to BlazeLibs
Hello Carlos

Acording the x3270 documentation the port must be passed as a parameter, try like this 

em = Emulator(visible=True, args=["-port", "992"])

Test it and try it

Saludos :-)
Reply all
Reply to author
Forward
0 new messages