forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Web Server
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
theno23



Joined: 01 Jul 2005
Posts: 11
Location: Southampton, UK

PostPosted: Fri Jul 01, 2005 8:09 pm    Post subject: Web Server Reply with quote

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
View user's profile Send private message Visit poster's website
Nick Fury



Joined: 22 Jun 2005
Posts: 45

PostPosted: Fri Jul 01, 2005 10:42 pm    Post subject: Reply with quote

Pretty fucking cool.
Back to top
View user's profile Send private message
KaL



Joined: 03 Apr 2005
Posts: 41

PostPosted: Fri Jul 01, 2005 10:56 pm    Post subject: Reply with quote

Works like a charm. Very good.
Back to top
View user's profile Send private message
Guyfawkes



Joined: 10 May 2005
Posts: 9

PostPosted: Fri Jul 01, 2005 11:17 pm    Post subject: Reply with quote

works great, i posted a photo of it in action if anyone cant get it working or doesnt have a wifi card http://emuholic.emuboards.com/modules.php?name=News&file=article&sid=829&tbid=6
_________________
Emuholic - PSP, DS, GBA and GP32 news
Back to top
View user's profile Send private message
theno23



Joined: 01 Jul 2005
Posts: 11
Location: Southampton, UK

PostPosted: Fri Jul 01, 2005 11:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Guyfawkes



Joined: 10 May 2005
Posts: 9

PostPosted: Fri Jul 01, 2005 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
nosrak113



Joined: 01 Jul 2005
Posts: 5

PostPosted: Fri Jul 01, 2005 11:34 pm    Post subject: help Reply with quote

the program get stuck on looking for dhcp sever will fail plz help
i would love to use this
Back to top
View user's profile Send private message Visit poster's website AIM Address
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Fri Jul 01, 2005 11:35 pm    Post subject: Re: help Reply with quote

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
View user's profile Send private message AIM Address
nosrak113



Joined: 01 Jul 2005
Posts: 5

PostPosted: Fri Jul 01, 2005 11:37 pm    Post subject: Reply with quote

how do i make it so it has a static ip address
Back to top
View user's profile Send private message Visit poster's website AIM Address
theno23



Joined: 01 Jul 2005
Posts: 11
Location: Southampton, UK

PostPosted: Fri Jul 01, 2005 11:39 pm    Post subject: Reply with quote

Is anyone looking into the DHCP thing? I dont have time at the moment, and static addresses are easier for testing.
Back to top
View user's profile Send private message Visit poster's website
Guyfawkes



Joined: 10 May 2005
Posts: 9

PostPosted: Fri Jul 01, 2005 11:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Fri Jul 01, 2005 11:41 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
theno23



Joined: 01 Jul 2005
Posts: 11
Location: Southampton, UK

PostPosted: Fri Jul 01, 2005 11:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
theno23



Joined: 01 Jul 2005
Posts: 11
Location: Southampton, UK

PostPosted: Fri Jul 01, 2005 11:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nosrak113



Joined: 01 Jul 2005
Posts: 5

PostPosted: Sat Jul 02, 2005 12:02 am    Post subject: Reply with quote

thz i got it working
Back to top
View user's profile Send private message Visit poster's website AIM Address
DivXboy



Joined: 30 Jun 2005
Posts: 3

PostPosted: Sat Jul 02, 2005 12:36 am    Post subject: Reply with quote

Working nice already. Keep up the good work! Thanks
Back to top
View user's profile Send private message
technobro



Joined: 02 Jul 2005
Posts: 1

PostPosted: Sat Jul 02, 2005 12:51 am    Post subject: Reply with quote

Its awsome

work realy well

Now lets make a ftp , so we can transfert app via wifi :P

Congrat again !!!!
Back to top
View user's profile Send private message
etx



Joined: 02 Apr 2005
Posts: 33
Location: Detroit

PostPosted: Sat Jul 02, 2005 1:10 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
nosrak113



Joined: 01 Jul 2005
Posts: 5

PostPosted: Sat Jul 02, 2005 1:11 am    Post subject: Reply with quote

could you add the home buton so you can quit? plz
Back to top
View user's profile Send private message Visit poster's website AIM Address
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 02, 2005 1:14 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
nosrak113



Joined: 01 Jul 2005
Posts: 5

PostPosted: Sat Jul 02, 2005 1:30 am    Post subject: Reply with quote

oh i got it you have to quit though the http site
Back to top
View user's profile Send private message Visit poster's website AIM Address
rogerlike



Joined: 02 Jul 2005
Posts: 2

PostPosted: Sat Jul 02, 2005 2:49 am    Post subject: Reply with quote

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
View user's profile Send private message
almazlamaz



Joined: 14 Apr 2005
Posts: 25

PostPosted: Sat Jul 02, 2005 2:51 am    Post subject: Reply with quote

nice progress :)
_________________
http://www.247recovery.com - Data Recovery
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Sat Jul 02, 2005 3:01 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
woehrl



Joined: 29 Jun 2005
Posts: 2

PostPosted: Sat Jul 02, 2005 3:09 am    Post subject: Reply with quote

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
View user's profile Send private message
rogerlike



Joined: 02 Jul 2005
Posts: 2

PostPosted: Sat Jul 02, 2005 3:36 am    Post subject: Reply with quote

yah yah, works well, thanks for the info. i should have guessed and tried though init :) ftp would be killer...
Back to top
View user's profile Send private message
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Sat Jul 02, 2005 4:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
theno23



Joined: 01 Jul 2005
Posts: 11
Location: Southampton, UK

PostPosted: Sat Jul 02, 2005 8:47 am    Post subject: Reply with quote

Great, and thanks for your work on the sample code, it was essential.

- Steve
Back to top
View user's profile Send private message Visit poster's website
gordie



Joined: 12 Sep 2005
Posts: 2

PostPosted: Mon Sep 12, 2005 6:56 pm    Post subject: I'm not getting it Reply with quote

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
View user's profile Send private message
gordie



Joined: 12 Sep 2005
Posts: 2

PostPosted: Tue Sep 13, 2005 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group