| View previous topic :: View next topic |
| Author |
Message |
theno23
Joined: 01 Jul 2005 Posts: 11 Location: Southampton, UK
|
Posted: Fri Jul 01, 2005 8:09 pm Post subject: Web Server |
|
|
I've made a web server for the PSP, it lets you browse your memory stick and internal flash devices.
http://www.microsith.com/psp-http/
The networking code is from pspet's wifi sample code, and has the same problem; it will only work with static IP addresses.
The home button doesn't work (its running as a kernel thread), but requesting /quit (or following one of the links to it) will make it return to the menu screen.
- Steve |
|
| Back to top |
|
 |
Nick Fury
Joined: 22 Jun 2005 Posts: 45
|
Posted: Fri Jul 01, 2005 10:42 pm Post subject: |
|
|
| Pretty fucking cool. |
|
| Back to top |
|
 |
KaL
Joined: 03 Apr 2005 Posts: 41
|
Posted: Fri Jul 01, 2005 10:56 pm Post subject: |
|
|
| Works like a charm. Very good. |
|
| Back to top |
|
 |
Guyfawkes
Joined: 10 May 2005 Posts: 9
|
|
| Back to top |
|
 |
theno23
Joined: 01 Jul 2005 Posts: 11 Location: Southampton, UK
|
Posted: Fri Jul 01, 2005 11:26 pm Post subject: |
|
|
Cheers, I forgot to take a photo before I left for work. Can I link to that page from the homepage?
- Steve |
|
| Back to top |
|
 |
Guyfawkes
Joined: 10 May 2005 Posts: 9
|
Posted: Fri Jul 01, 2005 11:29 pm Post subject: |
|
|
yeah you can use the photo no problem, you cant directly link to the image though as theres anti image leeching on my site. _________________ Emuholic - PSP, DS, GBA and GP32 news |
|
| Back to top |
|
 |
nosrak113
Joined: 01 Jul 2005 Posts: 5
|
Posted: Fri Jul 01, 2005 11:34 pm Post subject: help |
|
|
the program get stuck on looking for dhcp sever will fail plz help
i would love to use this |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Fri Jul 01, 2005 11:35 pm Post subject: Re: help |
|
|
| nosrak113 wrote: | the program get stuck on looking for dhcp sever will fail plz help
i would love to use this |
Read the orginial post:
| theno23 wrote: |
The networking code is from pspet's wifi sample code, and has the same problem; it will only work with static IP addresses. |
DHCP = not work. |
|
| Back to top |
|
 |
nosrak113
Joined: 01 Jul 2005 Posts: 5
|
Posted: Fri Jul 01, 2005 11:37 pm Post subject: |
|
|
| how do i make it so it has a static ip address |
|
| Back to top |
|
 |
theno23
Joined: 01 Jul 2005 Posts: 11 Location: Southampton, UK
|
Posted: Fri Jul 01, 2005 11:39 pm Post subject: |
|
|
| Is anyone looking into the DHCP thing? I dont have time at the moment, and static addresses are easier for testing. |
|
| Back to top |
|
 |
Guyfawkes
Joined: 10 May 2005 Posts: 9
|
Posted: Fri Jul 01, 2005 11:40 pm Post subject: |
|
|
on the PSP network settings you have to manually enter the IP address, its on the 3rd or 4th screen titled Address Settings, choose Custom then Manual on the following screen and then enter in the details there. _________________ Emuholic - PSP, DS, GBA and GP32 news |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Fri Jul 01, 2005 11:41 pm Post subject: |
|
|
Don't forget, that if you're behind a router, you need to have it set up to use static IP addresses... you can't just enter any random numbers there and have it work.
Edit:
About the DHCP thing... have you looked into looking into the source of dhclient on linux? I'm dont even have a clue on how a dhcp client talks to a server, but it's prolly somewhere in that source.
Last edited by Agoln on Fri Jul 01, 2005 11:43 pm; edited 1 time in total |
|
| Back to top |
|
 |
theno23
Joined: 01 Jul 2005 Posts: 11 Location: Southampton, UK
|
Posted: Fri Jul 01, 2005 11:42 pm Post subject: |
|
|
| nosrak113 wrote: | | how do i make it so it has a static ip address |
Its in the networking configuration, you have to use custom config. not easy.
Set IP address setting to manual, give it an IP address (like one you get from DHCP, but not one in use), subnet mask will be 255.255.255.0 probably, and set anything for the primary DNS (its not used).
To get an address you can tell it to use DHCP, then write down the number you get back on the testing screen. |
|
| Back to top |
|
 |
theno23
Joined: 01 Jul 2005 Posts: 11 Location: Southampton, UK
|
Posted: Fri Jul 01, 2005 11:46 pm Post subject: |
|
|
| Agoln wrote: |
About the DHCP thing... have you looked into looking into the source of dhclient on linux? I'm dont even have a clue on how a dhcp client talks to a server, but it's prolly somewhere in that source. |
The kernel does the DHCP negotiation for you, as far as I can tell. But it looks like its waiting for a callback or similar so the app can choose some options. Its not really clear though, and I've not put any effort into fixing it. |
|
| Back to top |
|
 |
nosrak113
Joined: 01 Jul 2005 Posts: 5
|
Posted: Sat Jul 02, 2005 12:02 am Post subject: |
|
|
| thz i got it working |
|
| Back to top |
|
 |
DivXboy
Joined: 30 Jun 2005 Posts: 3
|
Posted: Sat Jul 02, 2005 12:36 am Post subject: |
|
|
| Working nice already. Keep up the good work! Thanks |
|
| Back to top |
|
 |
technobro
Joined: 02 Jul 2005 Posts: 1
|
Posted: Sat Jul 02, 2005 12:51 am Post subject: |
|
|
Its awsome
work realy well
Now lets make a ftp , so we can transfert app via wifi :P
Congrat again !!!! |
|
| Back to top |
|
 |
etx
Joined: 02 Apr 2005 Posts: 33 Location: Detroit
|
Posted: Sat Jul 02, 2005 1:10 am Post subject: |
|
|
| theno23 wrote: | | Agoln wrote: |
About the DHCP thing... have you looked into looking into the source of dhclient on linux? I'm dont even have a clue on how a dhcp client talks to a server, but it's prolly somewhere in that source. |
The kernel does the DHCP negotiation for you, as far as I can tell. But it looks like its waiting for a callback or similar so the app can choose some options. Its not really clear though, and I've not put any effort into fixing it. |
Yeah, the psp already has support for it. We just need to figure out the callbacks and libs associated with it. |
|
| Back to top |
|
 |
nosrak113
Joined: 01 Jul 2005 Posts: 5
|
Posted: Sat Jul 02, 2005 1:11 am Post subject: |
|
|
| could you add the home buton so you can quit? plz |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 02, 2005 1:14 am Post subject: |
|
|
| nosrak113 wrote: | | could you add the home buton so you can quit? plz |
Does this help?
| theno23 wrote: | | The home button doesn't work (its running as a kernel thread), but requesting /quit (or following one of the links to it) will make it return to the menu screen. |
_________________ Lego of my Ago! |
|
| Back to top |
|
 |
nosrak113
Joined: 01 Jul 2005 Posts: 5
|
Posted: Sat Jul 02, 2005 1:30 am Post subject: |
|
|
| oh i got it you have to quit though the http site |
|
| Back to top |
|
 |
rogerlike
Joined: 02 Jul 2005 Posts: 2
|
Posted: Sat Jul 02, 2005 2:49 am Post subject: |
|
|
| hi, i have multiple accounts in network settings - which one will be chosen by httpd? which one do i need to change, or what do i need to name a new connection. no way i'm deleting them all, you know how much of a pain those 128bit wep passwords are to type in? hehe. tia. |
|
| Back to top |
|
 |
almazlamaz
Joined: 14 Apr 2005 Posts: 25
|
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Sat Jul 02, 2005 3:01 am Post subject: |
|
|
| rogerlike wrote: | | no way i'm deleting them all, you know how much of a pain those 128bit wep passwords are to type in? hehe. tia. |
No shit..... at one place it's 909090 etc etc.... you know how many times I have to press the key? It's about 19 presses for a 9, and 26 presses for a 0.
That adds up to 585 presses of the X button just to enter the wep!!!! _________________ Lego of my Ago! |
|
| Back to top |
|
 |
woehrl
Joined: 29 Jun 2005 Posts: 2
|
Posted: Sat Jul 02, 2005 3:09 am Post subject: |
|
|
| Agoln wrote: | | rogerlike wrote: | | no way i'm deleting them all, you know how much of a pain those 128bit wep passwords are to type in? hehe. tia. |
No shit..... at one place it's 909090 etc etc.... you know how many times I have to press the key? It's about 19 presses for a 9, and 26 presses for a 0.
That adds up to 585 presses of the X button just to enter the wep!!!! |
if you press Select you can easily switch between numbers and characters!
BTW, great work! Keep it up!
@rogerlike: you have to change only one setting of it, i have 4 different and changed the second one now it all working perfect! |
|
| Back to top |
|
 |
rogerlike
Joined: 02 Jul 2005 Posts: 2
|
Posted: Sat Jul 02, 2005 3:36 am Post subject: |
|
|
| yah yah, works well, thanks for the info. i should have guessed and tried though init :) ftp would be killer... |
|
| Back to top |
|
 |
PspPet
Joined: 30 Mar 2005 Posts: 210
|
Posted: Sat Jul 02, 2005 4:20 am Post subject: |
|
|
re: DHCP
> ... We just need to figure out the callbacks and libs associated with it.
Exactly. Most of the structure is already there, just need to figure out what is missing (Wipeout Pure and Twisted Metal appear to do the same init, but they have adhoc features too)
Its on my list.
---
> hi, i have multiple accounts in network settings - which one will be chosen by httpd?
The important number is the parameter to "sceNetApctlConnect". The sample uses "0" which I think means the last connection added (or officially used by the system). If you just added a new Infrastructure Network configuration with a static IP, it *should* use that one.
For more explicit control: change that to "1" it will pick the first connection in the list (or 2, 3, 4 etc). That's a temporary work around. The next update of the WiFi sample will include code to enumerate the possible configs and let you pick them based on name/SSID. Hopefully fix the DHCP and other problems too. |
|
| Back to top |
|
 |
theno23
Joined: 01 Jul 2005 Posts: 11 Location: Southampton, UK
|
Posted: Sat Jul 02, 2005 8:47 am Post subject: |
|
|
Great, and thanks for your work on the sample code, it was essential.
- Steve |
|
| Back to top |
|
 |
gordie
Joined: 12 Sep 2005 Posts: 2
|
Posted: Mon Sep 12, 2005 6:56 pm Post subject: I'm not getting it |
|
|
I can't get it to work. I just did a system update and I have a static IP set up.
However, 15 is reported as corrupted and 10 results in 'game cannot start'.
I put each folder in the games folder.
Am I doing it right? I looked all over for install docs, but came up empty.
the 15 folder had httpd and httpd% in it.
I'll try downloading it again.
Gordie |
|
| Back to top |
|
 |
gordie
Joined: 12 Sep 2005 Posts: 2
|
Posted: Tue Sep 13, 2005 2:13 am Post subject: |
|
|
still same problem.
It might be that the double packaging might be messing up the builds. I.E., the tar.gz. I even tried unpackaging them in linux; no good.
IF i get rid of the HTTPD% folder in FW15, it still doesn't work.
Gordie |
|
| Back to top |
|
 |
|