English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 07 February 2023, 11:21   #1
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
IP address and Winuae

I would like to use "export DISPLAY" with the "AmigaOS shell"

For example: Using Linux or PowerShell


How do I get the real IP address I'm using ?


If I type for example with Odyssey "MyIP" is it reliable?


Because if I use "Ranger" or other utilities like this:


http://os4depot.net/?function=showfi...config_cmd.lha


i just get the address of the emulated "ethernet card".


are there any other options with WinUAE to do this is get the real IP?


or is it not possible?


Thank you.
White is offline  
Old 07 February 2023, 12:02   #2
mfilos
Paranoid Amigoid
 
mfilos's Avatar
 
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
Dunno about WinUAE but on Workbench you can use commands like:
http://eab.abime.net/showthread.php?...03#post1592703
mfilos is offline  
Old 07 February 2023, 12:28   #3
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
@mfilos

Thanks for the reply.

I tried "GetExtIP" with the 68k and indeed the IP address is the correct one.
I guess it's due to bsdsocket.library selected with WinUAE

I could do the same with the 4.1FE it's not hard to do it just rename the files and enable the bsdsocket.library in WinUAE.
But unfortunately it leads to connection blocking very often.

((The one in "Odyssey" Browser with My-Ip is also corrected.

But I don't know how to show it to 4.1FE
because it shows me only the emulated ethernet card.))

Last edited by White; 07 February 2023 at 12:45.
White is offline  
Old 08 February 2023, 16:18   #4
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
I took some small steps

but i can't export the DISPLAY

at least for example with "Firefox"
it's the first time I've done it through WinUAE

so i probably have to change method.
and maybe even the program access program

And all virtualized with VMWare and WinUAE

Suggestions ?

Thanks for any help :-)
Attached Thumbnails
Click image for larger version

Name:	x1.jpg
Views:	109
Size:	140.9 KB
ID:	78052   Click image for larger version

Name:	x2.jpg
Views:	107
Size:	48.3 KB
ID:	78053  
White is offline  
Old 09 February 2023, 09:44   #5
SpaceAce
Registered User
 
SpaceAce's Avatar
 
Join Date: Jul 2020
Location: Bunbury/Australia
Age: 55
Posts: 27
If you type "who" at the ubuntu shell prompt, it will tell you the IP address of the pc initiating the connection.

Code:
arnie@thunderbolt:~$ who
arnie    pts/0        2023-02-09 16:40 (192.168.1.43)
Simple!
SpaceAce is offline  
Old 09 February 2023, 11:07   #6
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
@SpaceAce
Hi,
Thank you,
Now I try :-)

here a small test with "FFplay" and "Gedit"

but without exporting the display

[ Show youtube player ]
White is offline  
Old 09 February 2023, 13:10   #7
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
@SpaceAce
I tried the "who" command
but it gives me the VMWare network adapter "ethernet"

it is not the one of WinUAE

although it seems strange i checked with "Ipconfig" in windows and it's the one from VMWare.

Can you possibly give me an example if you can of the command:
"export DISPLAY" ?

if not that there is probably something to configure in AmiCygnix that I still don't understand.

Of course I have read various guides but I can not grasp the concept.

I wanted to try I also installed to try

"xrdp" which should be fine on "ethernet" networks

but until now I still haven't found a solution.

Thank you.
White is offline  
Old 09 February 2023, 13:51   #8
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,002
The IP is correct. What else do you expect?

If you use bsdsocket emulation WinUAE runs as an application on the host system and shares the host's IP address.

If you use SLIRP emulation you always get 10.0.2.15, but this addresss cannot be reached because it is behind a virtual NAT router. In order to access it you would have to open ports in the router. Some standard ports like http and ftp can be opened from the GUI. Other ports can only be opened by editing the config file.

These opened ports appear as listeners on the host, so the IP address again is that of the host.
thomas is offline  
Old 09 February 2023, 14:05   #9
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
@thomas
Hi,

so the problem is the ip address of the amiga as you are confirming me.
And that's what I thought from the start.

Thank you for your suggestion.

If you have any other recommendations I greatly appreciate them.
White is offline  
Old 10 February 2023, 03:58   #10
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
I forget the exact steps that I took, but I set up a virtual NIC and switch using the hypervisor functionality in Windows, and I have WinUAE configured to use that virtual NIC directly along with Roadshow to provide the networking capabilities inside the emulator. No bsdsocket.library emulation.

You need to not only select the appropriate virtual NIC (it'll be "Network adapter 'Hyper-V Virtual Ethernet Adapter #x' on local host" or something similar) but also set an explicit MAC address for your emulated network adapter. And you need to have a network stack installed in your Amiga environment that can use the adapter you've configured.

When this is all correctly set up, your emulated Amiga appears on your local network like any other (physical) device, as your physical NIC gets treated by the Windows hypervisor platform as a switch, and Windows itself getting its own virtual NIC that like the one for WinUAE uses that virtual Hyper-V switch.
coldacid is offline  
Old 10 February 2023, 14:18   #11
SpaceAce
Registered User
 
SpaceAce's Avatar
 
Join Date: Jul 2020
Location: Bunbury/Australia
Age: 55
Posts: 27
The usual *nix syntax for setting the DISPLAY variable is

Code:
set DISPLAY=<IP Address>:0.0; export DISPLAY
So, for an example:

Code:
set DISPLAY=192.168.1.63:0.0; export DISPLAY
I hope that helps.
SpaceAce is offline  
Old 10 February 2023, 18:27   #12
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
@All

Thanks everyone for the help,
Now the machines are configured correctly
(linux-amiga)
the IP problem remains because if I export DISPLAY on the amiga network, for example "FFplay" tries to connect for a few seconds but then fails and switches to the output again in the VMWare window (linux) automatically

the command to see the MAC of the virtual networks in "Windows" is:
ipconfig /all

now I have to see if these MAC, for example I also use "VirtualBox" are somehow usable by WinUAE.

any help is welcome.
White is offline  
Old 10 February 2023, 21:27   #13
Maijestro
Registered User
 
Join Date: Aug 2022
Location: Germany
Posts: 36
Quote:
Originally Posted by White View Post
@All

Thanks everyone for the help,
Now the machines are configured correctly
(linux-amiga)
the IP problem remains because if I export DISPLAY on the amiga network, for example "FFplay" tries to connect for a few seconds but then fails and switches to the output again in the VMWare window (linux) automatically

the command to see the MAC of the virtual networks in "Windows" is:
ipconfig /all

now I have to see if these MAC, for example I also use "VirtualBox" are somehow usable by WinUAE.

any help is welcome.
I don't have an answer for your problem, but check this out.

The more testers, the faster it will run perfectly.

https://eab.abime.net/showthread.php?t=75062&page=29
Maijestro is offline  
Old 10 February 2023, 23:40   #14
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
@Maijestro

Qemu for Sam460ex is an interesting project.
But it proceeds very slowly and unfortunately more than opening windows and using some games it doesn't allow anything else.

I have used Qemu since version 3.1 and apart from the improvements on the code written in practice it has remained the same.

If you try to watch a video you will understand the difference between the speed and 1-fps
it is practically motionless. :-)

I also thought about using Qemu directly from the AmigaOS shell with AmiCygnix :-)

My current idea is to bundle many programs under WinUAE to use 4.1, but this takes time.
And I basically do the tests myself. (few people are interested).

Qemu Remains an interesting project but unfortunately still behind for graphics card support.

But I am convinced that if we mentally deviate a little from the idea of pure amigaOS emulation then we can do a lot.

Even with a specially created fork.

But it is invaluable to report bugs to Toni and he promptly fixes them.
This is true passion and support for us users and Toni, if he can do something, he does it.
Toni is a great person, he imagines the amount of requests that are made continuously.
And he promptly sorts things out.
Too bad he doesn't want to go further to make hacks dedicated to 4.1.

Instead, only the idea of ports written for AmigaOS is carried forward
This is logical for those who have a real car for the 4.1FE.

What I can't do is only due to the fact that I use an emulation.
If I had a Real Amiga I would only have to install and configure the applications.
I wouldn't run into all the problems there are related to emulation.

AmigaOS is a nice system but the machines sell for very high prices.
And we're talking about 2,000 euros to play Doom 3 (maybe).

But it's nice to see that you are passionate about 4.1 :-)


((( Before the basic amiga broke I was getting a PowerPC at that time.

But then I opted for the "playstation 1"

Having played the first Metal Gear Solid in Italian
And to "Final Doom" the version for Playstation 1
It has brought me hours of wonderful fun.

At that point I made a comparison
Final Doom ate Alien Breed 3D The killing Ground completely in one bite.
Amazing I remember Final Doom as one of the best FPS gaming experiences :-)

Certainly remain personal tastes )))

Last edited by White; 11 February 2023 at 00:16.
White is offline  
Old 12 February 2023, 19:40   #15
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
Today, I made a system backup
so I can do the tests more calmly.

Exactly the MAC option in WinUAE

NetWork Adapter as used with "uaedevice"
or without "uaedevice" ? (OS4)

Also do I have to select any "Network" tab?
in WinUAE

or just set the MAC in NetWork Adapter ?
without network card

Also do I have to save the configuration of the MAC I want to use or can I start without saving the configuration with the MAC so it is recognized without saving the configuration ?

Thank you
Attached Thumbnails
Click image for larger version

Name:	X-NIC.jpg
Views:	56
Size:	68.1 KB
ID:	78108  

Last edited by White; 12 February 2023 at 19:57.
White is offline  
Old 24 February 2023, 08:07   #16
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
I configured Hyper-V easily from its GUI
calling the adapter "UAE"

here the screenshots with the relative MAC put in WinUAE:

but it doesn't seem to work

OS4 keeps setting up the same connection over and over again
am i probably doing something wrong?

here instead a Tutorial in Italian for a more detailed configuration
which I still don't use.

https://www.ictpower.it/sistemi-oper...windows-10.htm

But does the WinUAE mask where it says MAC andress work with 4.1 ?

Maybe a suitable driver is missing?

What driver should I use ?

Thank you.

Last edited by White; 25 February 2023 at 12:58.
White is offline  
Old 24 February 2023, 16:32   #17
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
Make sure you have the appropriate adapter set as the "Network mode" setting of the adapter card in WinUAE settings (in your case, "Hyper-V Virtual Ethernet Adapter #2"). Both "Network mode" and "MAC" parameters need to be set for the adapter card.

If you continue having problems you might want to try using a different MAC address in the WinUAE settings, instead of the "physical" address of the Hyper-V adapter provided by ipconfig. I use a custom MAC address in my own configuration. If you take this route, I suggest that the first byte of it ends in 2, 6, A, or E -- this specifies a locally assigned, unicast MAC address (lsb of the first byte is 0, next least significant bit is 1). This should hopefully ensure that you don't come up with an address that conflicts with anything else in your local network.
coldacid is offline  
Old 24 February 2023, 17:46   #18
White
Registered User
 
White's Avatar
 
Join Date: Sep 2016
Location: italy
Posts: 1,480
@coldacid

Thanks for the reply,

I can't grasp the concept in WinUAE
choosing for example the "A2065" or "RTL8090" driver with WinUAE is manually setting the MAC .

What should happen ?

Because with "Ranger" the MAC of the A2065 or RTL8029 card
it doesn't change it has its own it's the MAC I enter in WinUAE it doesn't appear in the "Ranger" associated with the cards.
The MAC of my choice does not appear anywhere in WinUAE.

Also that "stack" I have to use the "ethernet" one I imagine by entering the DNS of the virtual Hyper-V card the NetMask etc.

Because I don't have any feedback from the WinUAE side that the "MAC" is associated with something.

An example would really help, if you have the time for it.

Thanks, if you don't succeed it doesn't matter.
I really appreciate your suggestions though

an additional question hyper-v allows me to choose between real ethernet and wifi usb adapter.
On the Host PC

Right now I'm using the USB wifi adapter

Do I have to use an ethernet cable for this to work?

@Toni
since you programmed it, how should I use the MAC?

Thank you.

Last edited by White; 24 February 2023 at 17:59.
White is offline  
Old 24 February 2023, 18:57   #19
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
I'll have to deep dive when I get home after work, but I'm also using XSurf-100 IIRC. I can't recall if I had to write the MAC somewhere in one of the config files for the network stack, too.

BTW, I didn't use the Hyper-V Manager to set up the virtual network adapter. I remember having to hunt through the docs for the relevant PowerShell commands and setting it up that way. The Hyper-V Manager is actually fairly limited in what you can do compared to the PS commands.


UPDATE: No MAC in the stack config files inside Amiga. Here's the relevant lines from my UAE config:

Code:
xsurf100z3_rom_file=:ENABLED
xsurf100z3_rom_options=mac=00:80:10:76:55:64,rpcap://\Device\NPF_{9FA27751-2C5A-46AF-AEAA-C36454EBC2ED}

Looks like this in WinUAE Properties:



Note also that I have bsdsocket.library and uaenet.device OFF; with the builtin bsdsocket.library you simply can't get WinUAE to show up on the network like any other virtual machine, and uaenet.device has been iffy for me. You'll need to install a proper network stack inside your Amiga environment if it doesn't already have one (I know AOS4.x does, but for classic Amiga OS I suggest Roadshow).

Again, note that the MAC address configured in WinUAE does not match the physical address of the virtual adapter.



I'm not sure if NPCAP is actually necessary but I think that it might be for this to work with WinUAE. I do see its implementation of wpcap.dll loaded by the WinUAE process, but it might be brought in indirectly rather than something WinUAE looks to load (I bet it is an indirect dependency, but Toni would have to clarify that).



Somehow, all this magically works.

Last edited by coldacid; 24 February 2023 at 23:55.
coldacid is offline  
Old 25 February 2023, 10:15   #20
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,529
MAC setting overrides selected NIC's MAC address when Amiga side queries emulated card's MAC address.

Manual MAC address is useful if you only have single physical NIC. You can't (obviously) use original MAC because it would conflict with host's networking. (two operating systems would use same MAC simultaneously). But if you select manual MAC (that does not exist in network), it just works. Host OS uses original MAC, emulated Amiga uses manually configured MAC, even if both use same physical NIC.
Toni Wilen is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
dc.w / dc.l at odd address meynaf Coders. Asm / Hardware 21 27 November 2019 19:28
Winuae 3.5 setting Z3 RAM start address has no effect jotd support.WinUAE 19 05 August 2017 22:55
WinUAE Debugger - Address Register Watchpoints SparkyNZ Coders. Asm / Hardware 3 16 June 2015 22:39
How to show IP Address? AGS support.Apps 18 08 May 2014 21:05
NAT address -Rob- support.Other 7 07 April 2008 00:06

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:10.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09602 seconds with 13 queries