I succeeded setup a Java TCP server.
I succeeded setup a PHP TCP client. (By using stream_get_contents
, fwrite
)
The problem is, when I try to transfer my PHP TCP client to a hosting company (in my case GoDaddy.com), it doesn't work. GoDaddy probably blocks stream_get_contents.
What are my alternatives?
Asked
Active
Viewed 119 times
1

Zoe
- 27,060
- 21
- 118
- 148
-
See this question to check if it is really disabled: http://stackoverflow.com/questions/3938120/check-if-exec-is-disabled – Mike Aug 18 '13 at 04:19
-
by JAVA tcp server, you mean something like JBoss or Tomcat? – Soosh Aug 18 '13 at 04:27
-
java.net.ServerSocket – Aug 18 '13 at 04:32
-
So you mean using sockets to communicate in TCP/IP. – James P. Aug 18 '13 at 04:36
-
Where does your server run? How do you connect? – Behe Aug 18 '13 at 07:20
1 Answers
0
did you try your code locally? if it works locally maybe you should try these:
-fix firewall issue on JAVA tcp server machine
-check for NAT/PAT configuration
and if it still doesn't work,
I don't think you can communicate with other servers at socket level on hosting environments(not sure). but why don't you use web services?

Soosh
- 812
- 1
- 8
- 24