VOGONS


First post, by Cschneider

User metadata
Rank Newbie
Rank
Newbie

I have edited the config file and made my own config. Execute it with:

open -a DOSBox --args -conf pathtoconfig/dosbox.conf

it runs, and I believe it is enabled serial1 as follows:

serial1=modem listenport:23

but when I execute the program and try to connect on port 23 via a telnet client. it fails, the program never answers the request.

Reply 1 of 13, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie

If I execute it using the Terminal, I do the following steps:

  • 1) Open DOSBox application package by right-clicking, choosing "Show package content"
    2) Browse to "Contents/MacOS/DOSBox"
    3) Drag the DOSBox unix executable onto the Terminal window
    4) add "-conf " to the line, by typing it
    5) Locate the custom configuration file, dragging it onto the Terminal window as well
    6) Press return to execute the command line.

😉

Klimawandel.

Reply 3 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

are you allowed to open port 23 ? root access ? firewall ?

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 13, by Cschneider

User metadata
Rank Newbie
Rank
Newbie

i am new to the mac, how would you open port 23 with root access. I do know that my MAC firewall is disabled. I did a check in the terminal and it shows all ports are open from any IP address.

Reply 5 of 13, by Cschneider

User metadata
Rank Newbie
Rank
Newbie

i launched DOSBOX via the show package contents for the MAC and in the terminal it shows that "Serial1: Modem could not open TCP port 23." I have checked the terminal to find out what ports are open.

Dosbox shows:

Last login: Wed Feb 6 17:06:04 on ttys001
mymac:~ chrisschneider$ /Applications/DOSBox.app/Contents/MacOS/DOSBox ; exit;
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file dosbox.conf
MIDI:Opened device:coreaudio
Serial1: Modem could not open TCP port 23.

Terminal shows the below for ports opened:

mymac:~ chrisschneider$ sudo ipfw list
65535 allow ip from any to any

Reply 6 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

> sudo ipfw list

and without sudo? Also, try a different port number like 1023. If that works, you don't have the right for low port numbers or maybe there is already something else using this port.

1+1=10

Reply 8 of 13, by Cschneider

User metadata
Rank Newbie
Rank
Newbie

Tried to run DOSBox with sudo and I still get the error in the terminal stating "Serial1: Modem could not open TCP port 23."

Reply 10 of 13, by Cschneider

User metadata
Rank Newbie
Rank
Newbie

Thought I replied for Hals idea already. Same error even on higher ports.

Reply 11 of 13, by Cschneider

User metadata
Rank Newbie
Rank
Newbie

I got it working. even though port 1023 did not work, i boosted it to port 5000 and it worked. Not sure why i cannot get this mac to listen on port 23 though..
I am still open to suggestions.

Reply 13 of 13, by SquallStrife

User metadata
Rank l33t
Rank
l33t

Ports from 1024 down are protected, only services and root can open them.

Running dosbox with sudo should have fixed it though:

squallstrife-mbp:MacOS squallstrife$ ./DOSBox 
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /Users/squallstrife/Library/Preferences/DOSBox 0.74 Preferences
MIDI:Opened device:coreaudio
Serial1: Modem could not open TCP port 23.
^C

squallstrife-mbp:MacOS squallstrife$ sudo ./DOSBox
Password:
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /Users/squallstrife/Library/Preferences/DOSBox 0.74 Preferences
MIDI:Opened device:coreaudio
Serial1: Modem listening on port 23...

VogonsDrivers.com | Link | News Thread