melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.18k stars 527 forks source link

Reroute DHCP/Gateway to 192.168.1.1 (DS and DSi) [feature request] #1440

Open HotPizzaYT opened 2 years ago

HotPizzaYT commented 2 years ago

For some networks, the 192.168.. gateway isn't the default and may cause connections to not send over properly. Take the DSi web browser for example. Loading web pages in a non 192.168.. gateway may cause pages to load very slowly (or not load at all).

This may be useful for some users who do not have access to a custom DHCP server

nadiaholmquist commented 2 years ago

If you are using libslirp (indirect mode) this shouldn't matter, as the emulated DS is essentially on its own NAT. Direct mode should have it pick up a configuration from your DHCP server.

HotPizzaYT commented 2 years ago

On DSi, the web browser won't load anything as long as I am connected to a network with 10.1.19.* DHCP/Gateway

nadiaholmquist commented 2 years ago

Weird, it works fine here for me with 10.0.1.x.

HotPizzaYT commented 2 years ago

The thing is, you can only replicate this bug with something like PDANet or an ADSL modem which gives you a gateway IP of 10.1.19.1

EDIT: I am not sure if this is specifically relates to DSi only.

Weird, it works fine here for me with 10.0.1.x.

HotPizzaYT commented 2 years ago

For me, direct IP mode with PDANet says "unable to obtain an ip address"

I believe it's the IP that's tripping the DSi up, try using PDANet with a phone with melonDS default settings as a test

nadiaholmquist commented 2 years ago

Direct mode does not work with Wi-Fi if that's what you're trying.

HotPizzaYT commented 2 years ago

It's not WiFi, it's an ADB wired connection

Direct mode does not work with Wi-Fi if that's what you're trying.

nadiaholmquist commented 2 years ago

I was looking through the code yesterday, and the subnet melonDS tries to use with indirect mode is 10.64.0.x, not 10.1.19.x. ARe you sure that there isn't something wrong with your network?

HotPizzaYT commented 2 years ago

I'm sure, and at the moment I do not plan to use PDANet