VOGONS


DosBox tcp

Topic actions

First post, by horribile

User metadata
Rank Newbie
Rank
Newbie

Hi all,

Due to specific requirements I need MS DOS with a host access to the MS DOS folders and tcp/ip
working on the guest and specific autoexec.bat.
I tried many variants:
Tried Free DOS on VirtualBox, Qemu, FreeDOS inside DosBox.
Nothing was satisfying. Some were slow, some with no access to guest folders.
The best result I have with DosBox + 4DOS.
I used SVN Daum Build and it works like a charm on a Windows host.
But I have problems with a Linux host.
Network works inside DosBox without problems. With MTCP I have
IP address by dhcp, can access web sites, but can't ping the host.
Also when I start ftp server inside dosbox I can't access it from the host.
Any suggestions?

P.S. I tried DosEMU by it crashes with some tasks

Reply 1 of 8, by mbbrutman

User metadata
Rank Member
Rank
Member

I'm having a hard time picturing what is going on. It would help if you would be very specific about what works and what does not work. For example, you say that mTCP applications can talk to the outside world (web sites) but can't ping the host - what host? Are you comparing DOSBox with mTCP on a Windows machine vs. DOSBox with mTCP on a Linux machine?

Reply 2 of 8, by horribile

User metadata
Rank Newbie
Rank
Newbie

Thank you for the reply. The situation is following:
Windows host, DosBox guest:
1. IP address is got from a local router with dhcp utility
2. Internet is accessible from DosBox
3. Local network and host's Web server are accessible
4. ftpsrv is started in DosBox and is accessible from the host and local network
Linux host, DosBox guest:
1. IP address is got from a local router with dhcp utility
2. Internet is accessible from DosBox
3. Local network and host's Web server are not accessible
4. ftpsrv is started in DosBox and is not accessible from the host and local network

Reply 3 of 8, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

At the risk of stating the obvious, does running DOSBox as root make any difference?

Reply 4 of 8, by horribile

User metadata
Rank Newbie
Rank
Newbie
Jorpho wrote:

At the risk of stating the obvious, does running DOSBox as root make any difference?

Yes, without root it doesn't work at all. I tried to create a bridge but it doesn't work too.
No firewall also...

Reply 5 of 8, by horribile

User metadata
Rank Newbie
Rank
Newbie

Now I can connect to Internet from inside DosBox with eth0 and br0, as root and as a user.
But when ftpsrv is started in DosBox on host I get the following:
ftp 192.168.0.107
ftp: connect: No route to host

Reply 6 of 8, by horribile

User metadata
Rank Newbie
Rank
Newbie

I don't understand anything.
I can connect to DosBox ftp from Android device, but I can't connect from the host.

Reply 7 of 8, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

What if you bind DOSBox to a loopback adapter instead of your actual NIC?

Reply 8 of 8, by horribile

User metadata
Rank Newbie
Rank
Newbie
Jorpho wrote:

What if you bind DOSBox to a loopback adapter instead of your actual NIC?

I tried it already. It doesn't work also.
It seems specific route should be added to the route table
but I don't know how to do it