Socket operation not permitted

Status
Not open for further replies.

maynos

New Member
Messages
5
Reaction score
0
Points
1
Hello, I have a question regarding socket use on free hosting. Simply put, I have a simple PHP script on my site that queries a Minecraft server via the GS4 protocol, which of course involves opening a socket.

My script worked for a couple days, but now I get an error that says:
Code:
Notice: fwrite(): send of 7 bytes failed with errno=1 Operation not permitted in /home/maynos/<path>/<file>.php on line <line>

I checked the server's phpinfo and it says that sockets are enabled. Is there some sort of limit I ran into or something?
 

maynos

New Member
Messages
5
Reaction score
0
Points
1
Bump. Could someone please tell me what's going on here? I don't want to sound rude, but this is a serious breach of the contract that x10 technically has with me. If sockets are enabled (they are), and they're not being abused (they aren't), then I get access to them. Simple as that.

I'd really appreciate it if someone would at least tell me that no, I'm wrong, because then I will know. Otherwise, I may as well just take my site data and walk. Not that anyone would care, because as a free user, I'm probably tolerated rather than welcomed.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
There is no contract, technically or otherwise: you have not provided any good and valuable consideration, and consideration from both parties is a requirement for a contract. And the people providing most of the service here are volunteers. Are you communicating over port 80 (HTTP)? (Socket enabled on the server doesn't mean the firewall allows it.)
 

maynos

New Member
Messages
5
Reaction score
0
Points
1
Sorry if I sounded a heavy-handed; I was just annoyed. As for the script, the port it communicates on varies depending on what port the remote server is listening on; in this case port 25565. The page worked for a couple days, and then it suddenly stopped with no warning.

I didn't think any firewall had blocked it, because wouldn't the script have never worked in the first place if it had? The data passed back and forth is very small, so it wouldn't be an abuse of server bandwidth (though I could probably throw a captcha infront of it or something)
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,818
Reaction score
163
Points
63
What is the IP you're trying to connect to?
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,818
Reaction score
163
Points
63
The IP isn't in the firewall. But, more than likely, it won't work because of the port.
 

maynos

New Member
Messages
5
Reaction score
0
Points
1
Ah. Well, I'm disappointed to hear that, but it can't be helped. Thanks for your responses. I'll have to see if I can somehow get all the information exchanged over port 80, that way I'm not running into the firewall.
 
Status
Not open for further replies.
Top