Gp2x Tutorial: Setup Usbnet On Windows Xp 64-bit

Discussion in 'General Talk' started by HenrikE, Apr 6, 2008.

  1. HenrikE

    HenrikE Still Fresh

    Jun 18, 2007
    (I could only find Linux tutorials, so I'm writing this while I still have it fresh in my head. Also works for normal XP - but see below. Mods: feel free to move the thread if this is not the forum for it.)

    First off, a BIG thanks to Dimacus! He told me the "trick" which is basically:

    a ) Set your GP2X ip (in its menu) to not conflict with the addresses on your PC network, and
    b ) When XP shows your GP2X is connected, set a fixed IP that is also different from PC ip AND the GP2X ip.

    Here's what I wanted: Some way of transferring files without having to go into the settings/usb menu all the time, turn it off after copying the file, run the program I compiled, exit, turn on usb in the menu, transfer new enhanced .gpe, ...

    (NOTE: The IP range of *your* network might be completely different. Run->cmd->"ipconfig /all" to find your PC's IP and subnet mask. The below IPs are just examples - the important thing is the the GP2X ip and the USBnet connection IP differ from each other, and differ from your PC's ip in _both_ last two numbers of the IP.)

    First: Enable USB networking on GP2X:
    1. Menu Settings->System->these settings:
    - Advanced/Menu Extension: ON
    - USB Host: Always on
    - USB Network: Always on
    - IP: (if your PC's IP is like - never change your PC's ip)
    - FTP, Telnet Server: Always on
    - Samba Server: Always on (not sure this is necessary)
    Button B to save settings. (To change IP numbers, press Y and A buttons.)

    2. Plug in/turn on your GP2X. XP asks for a driver.

    XP driver link:
    Change two words in it to "port it to XP 64-bit" - instructions:;client=opera

    3. Follow the instructions here to install the driver;redirect=no

    You should get a "hardware is working" popup at the end of the guide.

    Second: Configure the network in XP:
    (I never recommend to turn firewall and antivirus off, but if you do, they could detect and offer some options automatically if you do.)

    1. Start->Network Connections, you should see a second network next to your normal internet connection. It probably says "Acquiring address..." and then fails.

    2. Right-click the connection->Properties. Click "Internet Protocol (TCP/IP)" in the small list, Properties...-> Advanced Tab, enter
    - IP: (different from both PC and GP2X ip)
    - Subnet Mask: (usually default)

    Click OK and after a few seconds the status of the connection should change to "Connected".

    --- Now, the important thing is to always use the IP in the GP2X menu to access it!

    3. Start->Run... "\\\"

    A normal explorer window should open, containing a folder called "gp2x". By putting files in "/gp2x/mnt/sd" or "/gp2x/mnt/nand" you can get your files onto the card without wearing down the GP2X menu ;)

    Third: Convince your Firewall and Antivirus that yes, you really want to allow access:
    1. In Windows Firewall: Exceptions Tab->Add Port, type "gp2x-ftp", "21", OK. Then "gp2x-telnet", "23", OK.

    2. In Windows Firewall, go to Advanced->"gp2x connection"->Settings->Services. I enabled:
    - FTP
    - telnet
    - Web Server (HTTP)

    (the last one was to make Kaspersky happy.)

    That's it! If step 3. above failed, go Start->Run..."cmd" and type "ping" or whatever you chose _in XP_. If you get ping times back, you have a connection.

    You should now be able to connect with an ftp client, or get commandline access with Start->Run..."telnet 23" (23 is the port we opened), both using username "root" and no password.

    It was lovely to finally solve this, now I can press 2 keys and press the B button 3 times to compile and test a program I made. Thanks again to Dimacus for helping me resolve the IP "trick" ! :)

    [EDIT: Results of some heavy compiling sessions...]

    DEving over USBnet isn't perfect, on occasion it uses an old copy (but only if the previous program didn't return to the menu so GP2X could hold hands with USBnet again) - upload, unplug the USB and plug it in again, and the new version is the latest one. Seems GP2X reads cached network files before storing to / looking at the sd card.

    But I'm happy, I can recompile and test in a few seconds, and programs don't hang that often, so it's no real hassle.
  2. Parkydr

    Parkydr Developing for the GP2X since 2006

    Dec 3, 2005
    You could fix up this.
  3. peelie

    peelie Member

    Apr 6, 2007
    i can connect to GP2X via telnet but i can't seem to connect via an explorer window?

    also still can't connect to the internet from gp2X, any ideas?
  4. HenrikE

    HenrikE Still Fresh

    Jun 18, 2007
    Are you doing it with Start->Run..."\\<gp2x's ip>\" ? Is that IP different from the USB network ip and your pc's ip? Internet: is Web server enabled on gp2x and Web enabled for the USB network in the firewall, and is port 80 open?

    Parkydr: Heh :) Guess I didn't search for the "right words" then. I might fix it up, but I hesitate a little since I don't have in-depth knowledge on "making a correct doc for anyone", I just wrote the post as a hands-on how I made it work. Actually, it was sheer luck that I even found a 64-bit driver then. :)
    Last edited by a moderator: Dec 18, 2015
  5. u9i

    u9i Call me Uni

    Jun 27, 2008
    Faroe Islands
    There are no such options in firmware version 4.0.0. Does anyone know how to proceed, or have GPH completely removed this from the OS?
    Last edited by a moderator: Dec 19, 2015
  6. Squirrel61

    Squirrel61 Member

    Aug 23, 2008
    The Netherlands
    Last edited by a moderator: Dec 19, 2015

Share This Page