This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adhoc
#9
(04-05-2012, 10:13 AM)virgil94 Wrote: Hey gid15 does it changes something if we change the values in --netClientPortShift 100 and in --netServerPortShift 100 ?Besides,I think the jpcsp gives a small amount of time and after that it disconects and shows the conexion error.Tried to play in 2 jpcsps at the same time with adhoc.First I could get to the selection characters in both jpcsp but when I pick a character jpcsp makes the error come up.Later it didn't even let me to the character selection making the same error
You can use different values for netClientPortShift and netServerPortShift, they just need to be same on both systems. But it makes sense to use different values only if connection errors occur ("cannot bind, port already in use"). The value you specify is used as follows:
- when opening a local port N, the server is actually opening a local port N + 100
- when sending to a remote port N, the client is actually sending to the remote port N + 100

E.g.: when the PSP opens a local port N and sends to a remote port N:

PSP: local N <-> remote N
Jpcsp client: local N <-> remote N + 100
Jpcsp server: local N + 100 <-> remote N
The ports between client and server are "crossed".

(04-05-2012, 06:34 AM)hyakki Wrote: I tried running it on two computers (one windows and one linux) but I couldn't get them to see each other , maybe its my firewall or port needs to be forwarded or who knows Smile
I do see it broadcasting from iptraf so I can't say for sure if the problem jpcsp / linux / firewall or something else
UDP (200 bytes) from 10.0.1.2:3658 to 10.0.1.255:3658 on eth0 <- windows // This port comes from the windows computer, port 30000 and 3658
UDP (184 bytes) from 10.0.1.1:30000 to 10.0.1.255:30000 on eth0 <- linux (only uses port 30000, I wonder why its not sending on port 3658 like windows)
UDP (184 bytes) from 10.0.1.2:30000 to 10.0.1.255:30000 on eth0 <- windows
At least the broadcast mask is computed correctly: 10.0.1.255.
When enabling the log level to DEBUG for the sceNetAdhoc* modules, do you see if some bytes are received on one side "...received..."?
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply


Messages In This Thread
adhoc - by Sawanaga - 04-03-2012, 05:47 PM
RE: adhoc - by gid15 - 04-04-2012, 05:51 AM
RE: adhoc - by raziel1000 - 04-04-2012, 01:25 PM
RE: adhoc - by feverzero12 - 01-17-2013, 02:52 AM
RE: adhoc - by Sawanaga - 04-04-2012, 04:02 PM
RE: adhoc - by gid15 - 04-04-2012, 04:05 PM
RE: adhoc - by Sawanaga - 04-04-2012, 04:32 PM
RE: adhoc - by hyakki - 04-05-2012, 06:34 AM
RE: adhoc - by Zekro - 04-05-2012, 10:13 AM
RE: adhoc - by gid15 - 04-05-2012, 01:25 PM
RE: adhoc - by hyakki - 04-05-2012, 10:43 PM
RE: adhoc - by gid15 - 04-06-2012, 06:57 AM
RE: adhoc - by hyakki - 04-06-2012, 09:49 AM
RE: adhoc - by ghostx - 03-12-2013, 11:28 AM
RE: adhoc - by Zekro - 03-12-2013, 01:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)