Results 1 to 11 of 11
  1. #1
    MSgt. Shooter Person
    Join Date
    Jan 2012
    Posts
    71

    Default connecting to server

    i know how to connect to a server through the command prompt but how do i do it through a menu?
    how do i get the IP address of the servers?

  2. #2
    MSgt. Shooter Person
    Join Date
    Jul 2011
    Posts
    484

    Default

    You server must have a static ip address and you can put it in the program. For test purpose you can use 127.0.0.1 ip address (server and client on the same computer) or a local network computer ip address .
    You can use at FLCT (Script Wizard) - it generate code for multiplayer, including menu.

  3. #3
    MSgt. Shooter Person
    Join Date
    Jan 2012
    Posts
    71

    Default

    What about when the users create there own server?
    How do i connect to a sever through unreal script?

  4. #4
    MSgt. Shooter Person
    Join Date
    Jul 2011
    Posts
    484

    Default

    numbers2
    Server creates by running a program with keys: <udk dir>\Binaries\UDKLift.exe server mapdm2.udk?timelimit=1
    mapdm2.- is a map and timelimit=1 is a timelimit
    For connect you must do ConsoleCommand("open 127.0.0.1") . It is for local host, for other hosts you must change 127.0.0.1 to ip address of the server.

  5. #5
    Redeemer
    Join Date
    Nov 2009
    Location
    Caracas
    Posts
    1,629
    Gamer IDs

    Gamertag: daimakupikoro PSN ID: lone_vampire

    Default

    in my experience you need to write

    Code:
    open 127.0.0.1:7777 -nosteam
    you need to use the -nosteam because if you don't use it you will have some weird problem.

    you need to have the same copy of the program running on the server and client.
    http://vincenzoravo.vrs.com.ve http://www.slaughtermaze.com

    please don't fill my inbox with questions, ask in the forum, the answers will help you and others !!!

  6. #6
    MSgt. Shooter Person
    Join Date
    Jan 2012
    Posts
    71

    Default

    how would i get the ip address of servers created by users?

  7. #7
    MSgt. Shooter Person
    Join Date
    Jul 2010
    Location
    Italy
    Posts
    137

    Default

    Quote Originally Posted by numbers2 View Post
    how would i get the ip address of servers created by users?
    So when user host a game, send her IP to a master server, also the user must make a port forwarding to its local address.

    You get his ip from the master server.

  8. #8
    MSgt. Shooter Person
    Join Date
    Jan 2012
    Posts
    71

    Default

    How would the master server get information on the current status of the game?

  9. #9
    MSgt. Shooter Person
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    194

    Default

    TCPLink periodically from the game server to the master server to update the game's details.
    ~Dulcius Ex Asperis~

  10. #10
    MSgt. Shooter Person
    Join Date
    Jan 2012
    Posts
    71

    Default

    what is TCPlink?

  11. #11
    MSgt. Shooter Person
    Join Date
    Jul 2011
    Posts
    484

    Default

    numbers2
    http://udn.epicgames.com/Three/TcpLink.html
    Class for TCP/IP connections, uses Windows sockets system. If you write master server on C++, then you can use C++ code+DLLBind for client too, without TCPLink (sometimes it is more simple, because reusing some code).
    Last edited by rquester; 04-28-2012 at 04:50 PM.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.