09 May 2013, 00:42 | #1 |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
WinUAE and IP/DHCP
Hi,
I have used bsdsocket emulation in the past and that works great for outbound traffic. Now I'd like to create inbound traffic, meaning I'd have to give my WinUAE emulator a DHCP address or a fixed address on my LAN I have tried A2065 and ueanet emulation but have not had any success at all getting online. None of them are able to request a address from my DHCP server nor allow me to enter a fixed IP. Will these emulation methods create a bridged interface on my NIC (Ethernet not wifi) or is there some NAT involved on the host windows box? I have installed Winpcap. |
09 May 2013, 08:09 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
bsdsocket should work with inbound connections. IP is shared with Windows side.
A2065 and uaenet are network drivers, they are useless without Amiga side TCP/IP stack installed. |
09 May 2013, 09:35 | #3 | |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
Quote:
Of course, without a TCP/IP stack how did you expect I would manage to send a DHCP request? |
|
09 May 2013, 09:39 | #4 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Quote:
Quote:
winpcap stuff rarely works without second NIC that does not have Windows assigned IP. |
||
09 May 2013, 10:38 | #5 | |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
Understood.
Quote:
I'm trying to get telnetd.device working and so far without luck. I changed to AmiTCP and need to see if I'd can use bsdsocket emulation there. |
|
10 May 2013, 20:25 | #6 |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
I'm stuck. Has anyone managed to get telnetd or amiser to work within WinAUE using bsdsocket.library? They both require AmiTCP and I have no clue on how to get amitcp running when the bsdsocket.library already exists in memory.
I have also tried A2065 and ueanet but without success using a separate (wifi) nic on the windows side where I have disabled all services on the nic to avoid conflict. Wincap is installed (latest version) Running latest beta on Windows 7 64-bit. |
10 May 2013, 20:33 | #7 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Quote:
http://eab.abime.net/showthread.php?p=267888 Quote:
|
||
10 May 2013, 20:53 | #8 |
Registered User
Join Date: Aug 2012
Location: Australia
Posts: 651
|
I think what he is really saying is he wants a virtual UAE adapter windows side ala virtual box bridged mode style.
|
10 May 2013, 20:59 | #9 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Quote:
(and don't say virtualbox is open source. It won't help.) |
|
10 May 2013, 21:00 | #10 | |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
Quote:
Could be true, tried to reverse my NICs on the win box, letting my WiFi belong to windows and the fixed nic to winuae, still fails. I'm able to load the NIC driver (ethernet.device, a2065.device) in AmiTCP but when i try to add a default route it just says it cant find that address. Can't ping any address on the LAN either (with the correct subnetmask) so something is not happening as far as ethernet packets. What should I run to debug for example the a2065 driver "emulation" in WinUAE? Should i try to sniff packages from winside? |
|
10 May 2013, 21:01 | #11 |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
|
12 May 2013, 00:10 | #12 |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
Guess WinUAE is not really for the hardcore TCP folks.
|
12 May 2013, 00:40 | #13 | |
Fanatically Amiga.
Join Date: Apr 2002
Location: Melbourne, Victoria, Australia
Age: 54
Posts: 1,557
|
Quote:
Now, if the Operating system is loaded (AmigaOS), and the BBS software is loaded, then it will be listening on Port 23 (IF it supports Telnet). Any incoming packets forwarded to the host PC by the router (if that is your network setup of choice) will be picked up by BSDsocket and passed to AmigaOS (As well as other programs listening to that port, Amiga or Windows), now this is the issue here, TelnetD needs AMITCP to work, but you cannot have a TCP stack (AmiTCP), as well as BSDSocket emulation, conflict (and hair pulling) ensues. Think about it, you cannot have TWO programs listening to the one port at any one time (or Devices), they start to have arguments as to who gets to respond and it all falls over in a heap. My guess is TelnetD needs to be rewritten (or updated) to recognize the fact that there are other TCP stacks, than just AmiTCP for it to work in an emulated environment. Last edited by whiteb; 12 May 2013 at 00:51. |
|
12 May 2013, 01:19 | #14 |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
There is nothing wrong with telnetd.device, it requires to be activated from a TCP stack deamon, inited and that is a regular UNIX listening service used by loads of linux tcp/udp services. bsdsocket.library has nothing to do with listening ports, its just a layer.
If you want to run Apache on your Amiga in WinUAE or any other services you rely on inted. bsdsocket does not have any of these functions. And I have not got A2065 or ueanet to work, nor any help. There are no documentation around this at all so I have no place to look for ideas about how this actually works. |
12 May 2013, 08:57 | #15 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Apache does not need to be a service. AFAIK telnet drivers can also work without being a service that gets automatically started by amitcp. It also may be possible to use amitcp service stuff with uae bsdsocket emulation.
"Documentation" = search this forum. There is at least one large thread about a2065/uaenet debugging using wireshark. I don't really care about network software side and network is "unsupported" without enough debug logging, sorry. (because this winpcap method is ugly hack but there is no other easy ways) ADDED: I have heard WinUAE + telser (or similar serial emulation handler) has been used by others successfully with bsdsocket emulation. Last edited by Toni Wilen; 12 May 2013 at 11:03. |
12 May 2013, 22:11 | #16 |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
I have searched to forms for telnetd.device and a2065 and even the whole internet as i normally search before asking questions, been surfing the net for almost 20 years.
Understood, if we like networking we are on our own, fair. But is there a thread about someone has actually got it to work, there are, a number of threads about telnetd.device but only two talks about it in contest of WinUAE and the last one is 5 years old. Maybe it's not working well together with Windows 7? I do not know, the only think i know is that none of the TCP stacks I have tried on the amiga side works for me with either a2065 or ueanet! |
13 May 2013, 08:38 | #17 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
http://eab.abime.net/showthread.php?t=58393 should help with a2065/uaenet debugging.
|
13 May 2013, 12:38 | #18 |
Registered User
Join Date: May 2013
Location: Stockholm/Sweden
Posts: 21
|
Have seen that thread, enable logging with -netlog has been done.
Snippings: wpcap.dll 4.1.0.2980 uaenet: WinPcap version 4.1.3 (packet.dll version 4.1.0.2980), based on libpcap version 1.0 branch 1_0_rel0b (20091008) uaenet: detecting interfaces rpcap://\Device\NPF_{9C167C3A-2CA8-4EEF-B8C6-49036B6B3067} - Network adapter 'Microsoft' on local host - MAC 94:DB:C9:A9:72:F7 (0) rpcap://\Device\NPF_{C6554638-A6DC-418E-A5D0-3BB7457B7EC3} - Network adapter 'Realtek PCIe GBE Family Controller' on local host - MAC 00:01:2E:49:62:95 (1) uaenet: end of detection 55-050 [0 000-000]: A2065: 'rpcap://\Device\NPF_{C6554638-A6DC-418E-A5D0-3BB7457B7EC3}' 00:01:2E:49:62:95 44-136 [2739 000-000]: winuae_inactive(0) 2013-05-13 12:29:02 02-122 [3806 000-155]: winuae_active(0) 06-866 [4081 045-044]: A2065: Initialization block2: 06-866 [4081 045-044]: .00.00.00.80.10.49.62.95.FF.FF.FF.FF.FF.FF.FF.FF.38.80.E9.80.18.80.E9.40 06-867 [4081 045-044]: A2065: 0000 000000 0 0 16 4 E98038 E98018 00:80:10:49:62:95 06-868 [4081 045-044]: uaenet_win32 initialized Rpcap reports two NICs, and the A2065 emulation seems to use the right card ('Realtek'). Where would my netlog go? Can only find two logs, boot and winuae but the log parameter is correct: EXE: 'C:\Program Files (x86)\WinUAE\', DATA: 'C:\Users\Public\Documents\Amiga Files\WinUAE\', PLUGIN: 'C:\Users\Public\Documents\Amiga Files\WinUAE\' '-netlog' params: 1: '-netlog' Last edited by prowler; 13 May 2013 at 22:18. Reason: Added <noparse></noparse> tags. |
13 May 2013, 12:56 | #19 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
-a2065log -a2065log2 is also needed (It is possible -a2065log was -netlog previously)
All log information goes to winuaelog.txt. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WinUAE 0.9.92 "WinUAE 1.0 public beta #3" Released! | Jim | News | 2 | 23 December 2004 11:29 |
WinUAE - HD, and WinUAE Beats me | Mr.B | support.WinUAE | 19 | 26 October 2003 17:49 |
WinUAE 0817r3-GUI dissappears/ WinUAE freezes. | 7-Zark-7 | support.WinUAE | 2 | 23 December 2001 14:19 |
|
|