|
|
#1 |
|
Junior Member
|
redirect problem
i have developed a small program that streams audio over a LAN. and im using winamp as the client. here is my problem: i have 2 winsock controls listening (i am using VB) on 9000 and 9001. when winamp connects to the control on port 9000, how can i get it to re-connect to the control on port 9001? what packets do i need to send?
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
|
ummm, no, I dont think it works that way
when you bind a listen port, such as a web server, it listens on port 80, the port it replies on, doesnt have to be 80, that's dealt with by the server, you really shouldnt have to worry about it when using sockets, I do believe it streams data back on port 80, but it can come back from any port, soze... 9000, it accepts requests, but that's only needed as a bound port for a program, when it sends the stream back, I believe it sends it back using port 9001, I think. btw, winsock controls prolly wont work, you'll need a socket, since it's http, unless you've figured out a way around that
|
|
|
|
|
|
#3 |
|
Junior Member
|
yea :)
yep i have figured a way around it. and i figured out a way around the problem i posted. but thanks anyways. TheSarlacc
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|