- Home /
Unity software to act both as server in one network and a client in another
Hello I am working on a project that requires me to make it a client in one network (receiving TCP commands) and a server on another network (which host 6 stations to sends command to upon receiving from TCP server). When connecting to the TCP server everything works fine, when initiating the other network, it disconnects from the first one (the TCP). I am using the old, recently deprecated network system (I am familiar with the new one and don't see any reason why the version should differ in results). There are two scenes: 1. holds the connection to the TCP server, upon connection -> moves to second scene. 2. upon reaching scene 2 - initialize network server (this is where is disconnects from the TCP one).
I use NetworkView on each of them, making sure the id matches the appropriate one in each application. I also declare TCP port usage as 6000, App Server as 25001. (using the TCP server on the 8080 port.) I must say all these is done for testing on the same computer, so it may have somthing to do with that.
Any suggestion on how to solve this problem of mine? Thanks in advance for looking this over. Saiphan